Export (0) Print
Expand All

DrawingContext::DrawText Method

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.

ExceptionCondition
ObjectDisposedException

The object has already been closed or disposed.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft