TextBlock.OnRender Method (DrawingContext)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Renders the contents of a TextBlock.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

override OnRender : 
        ctx:DrawingContext -> unit

Parameters

ctx
Type: System.Windows.Media.DrawingContext

The DrawingContext to render the control on.

Exception Condition
ArgumentNullException

ctx is null.

This method is invoked by the layout system to render the contents of the TextBlock.

.NET Framework
Available since 3.0
Return to top
Show: