Click or drag to resize

ExtensionsDrawText(DrawingContext, String, Point, Brush, AlignmentX, AlignmentY, 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,
	Brush brush,
	AlignmentX alignmentX,
	AlignmentY alignmentY,
	out double textWidth,
	out double textHeight
)

Parameters

dc  DrawingContext
 
txt  String
 
origin  Point
 
brush  Brush
 
alignmentX  AlignmentX
 
alignmentY  AlignmentY
 
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