Version

Format Property (SliderValueLabel)

Gets sets the format string applied to Value and SecondaryValue of WebSlider.
Syntax
'Declaration
 
Public Property Format As String
public string Format {get; set;}
Remarks

The only simple "{0}" format is recognized.

Default format depends on WebSlider.EnableSecondaryValue, WebSlider.Track.FillValueMode and Location properties and it can be "{0}" or "{0}:{1}".

If application needs special format, then it should process ClientEvents.FormatValueLabel.

The "|" character is not supported.

Notes for situation when WebSlider.EnableSecondaryValue is enabled:

  • In order to show 2 values on a single label, that property should contain both "{0}" and "{1}" substrings. In this case the "{0}" will be replaced by WebSlider.Value and "{1}" will be replaced by WebSlider.SecondaryValue.
  • If Location is set to FloatXxx and property contains only "{0}", then 2 labels will be displayed.
Examples:
  • "{0} - {1}" - show Value and SecondaryValue separated by " - "
  • "{0}" - show SecondaryValue and Value on separate labels
  • "$ {0}" - show "$ " prefix in front of value
  • "{0}% {1}%" - show "%" suffixes after values

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