Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2016 Microsoft