Click or drag to resize

ExtensionsDrawText(DrawingContext, String, Point, Typeface, Double, Brush, AlignmentX, AlignmentY, Single, Double, Double) Method


Namespace: ArthaChitra.Model.Common
Assembly: ArthaChitra.Core (in ArthaChitra.Core.dll) Version: 2.0.3.0
Syntax
C#
public static void DrawText(
	this DrawingContext dc,
	string txt,
	Point origin,
	Typeface typeface,
	double fontSize,
	Brush brush,
	AlignmentX alignmentX,
	AlignmentY alignmentY,
	float dpi,
	out double textWidth,
	out double textHeight
)

Parameters

dc  DrawingContext
 
txt  String
 
origin  Point
 
typeface  Typeface
 
fontSize  Double
 
brush  Brush
 
alignmentX  AlignmentX
 
alignmentY  AlignmentY
 
dpi  Single
 
textWidth  Double
 
textHeight  Double
 

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