DrawingContext.DrawText Method (FormattedText, Point)

 

Draws formatted text at the specified location.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public void DrawText(
	FormattedText formattedText,
	Point origin
)

Parameters

formattedText
Type: System.Windows.Media.FormattedText

The formatted text to be drawn.

origin
Type: System.Windows.Point

The location where the text is to be drawn.

Exception Condition
ObjectDisposedException

The object has already been closed or disposed.

.NET Framework
Available since 3.0
Return to top
Show: