Version

BeforeRenderTextMarker Event

Raised before a text marger is measured and rendered.
Syntax
'Declaration
 
Public Event BeforeRenderTextMarker As EventHandler(Of TextMarkerEventArgs)
public event EventHandler<TextMarkerEventArgs> BeforeRenderTextMarker
Event Data

The event handler receives an argument of type TextMarkerEventArgs containing data related to this event. The following TextMarkerEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
Data Gets the data context.
FontColor Gets or sets the color of the font used to render the marker.
FontFamily Gets or sets the font family of the font used to render the marker.
FontSize Gets or sets the size of the font used to render the marker.
FontStyle Gets or sets the style of the font used to render the marker.
Offset Gets or sets the distance to offset the text from the marker location.
Text Gets or sets the text to be displayed in the marker.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also