Version

FormatTickmarkLabel Event

Adds removes event handler which is fired while building labels for tickmarks.
Syntax
'Declaration
 
Public Event FormatTickmarkLabel As SliderFormatTickmarkLabelEventHandler
public event SliderFormatTickmarkLabelEventHandler FormatTickmarkLabel
Event Data

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

PropertyDescription
Label Gets sets label.
LabelID Gets the id of label starting from the bottom label of vertical slider or left label of horizontal slider.
LeftTop Gets location of label. True: left for vertical slider or top for horizontal slider. False: right for vertical slider or bottom for horizontal slider. That property is not applied, when slider has 2 labels on edges.
Percent Gets percentage of the label's location within slider bar. Value is in range from 0 to 1. Note: if static labels were set (SliderTickmarks.SetLabels), then that value is null.
Value Gets value at position where label is located. Note: if static labels were set (SliderTickmarks.SetLabels), then that value is null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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