ExtensionsDrawText(DrawingContext, String, Point, Double, Brush, AlignmentX, AlignmentY, Single, Double, Double, Int32, Double, Boolean) Method |
Namespace: ArthaChitra.Model.CommonAssembly: ArthaChitra.Core (in ArthaChitra.Core.dll) Version: 2.0.3.0
Syntax public static void DrawText(
this DrawingContext dc,
string txt,
Point origin,
double fontSize,
Brush brush,
AlignmentX alignmentX,
AlignmentY alignmentY,
float dpi,
out double textWidth,
out double textHeight,
out int readIdx,
double maxWidth = 1.79769313486232E+308,
bool isSideways = false
)
Parameters
- dc DrawingContext
-
- txt String
-
- origin Point
-
- fontSize Double
-
- brush Brush
-
- alignmentX AlignmentX
-
- alignmentY AlignmentY
-
- dpi Single
-
- textWidth Double
-
- textHeight Double
-
- readIdx Int32
-
- maxWidth Double (Optional)
-
- isSideways Boolean (Optional)
-
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DrawingContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also