Constructors
Properties
BackColour
#Gets the sets the colour of the slider background. This will also affect the colour of the border, if any.
public Color BackColour { get; set; }
CustomFormatting
#Gets or sets a custom formatting delegate.
Format
#Gets or sets the value format for the slider grip. The format supports several placeholders:
{0} will be replaced with the standard formatting.
{1} will be replaced with the standard percentile formatting.
{2} will be replaced with the actual value, and as such supports custom formatting hints.
{3} will be replaced with the normalised value, and as such supports custom formatting hints.
{4} will be replaced with the percentage value, and as such supports custom formatting hints.
{5} will be replaced with the non-linear value.
{6} will be replaced with the custom formatting string.
Limits
#Gets the limits and average value of this slider. Note, for the true values, access the Value property.
SlabThickness
#Gets or sets the thickness of the grip. When left at its default (float.NaN) the value is derived from the grip type via SliderLayout.GripThickness / SliderLayout.LabelThickness. Callers that want the slab thickness to match a surrounding canvas shape can assign that thickness here prior to drawing.
Methods
AddPreset
#Add a preset by name and value.
FormatValue
#format a given value using the Format field. This is the text that the slider displays on the grip.
Returns: Formatted value.
IsPreset
#Gets whether a preset value has already been defined.
IsPreset
#Gets whether a preset name has already been defined. Name comparison is case sensitive.
NextPreset
#Find the first preset strictly larger than the locus.
Returns: True if a previous preset was found.
NextPreset
#Find the first preset strictly larger than the locus.
Returns: True if a previous preset was found.
PreviousPreset
#Find the first preset strictly smaller than the locus.
Returns: True if a previous preset was found.
PreviousPreset
#Find the first preset strictly smaller than the locus.
Returns: True if a previous preset was found.
RenderCustom
#Render this slider into a graphics context, with optional overrides for various layers.
public void RenderCustom()
context,
Graphics context.
drawBack = null,
Optional background override.
drawRail = null,
Optional rail override.
drawGrip = null,
Optional grip override.
drawText = null,
Optional text override.
drawPopup = null
Optional popup override.
RenderStandardBack
#Default background render method.
RenderStandardGrip
#Default grip render method.
RenderStandardPopup
#Default numeric popup render method.
RenderStandardRail
#Default rail render method.
RenderStandardText
#Default rail render method.