Class RadTrackBarElement
Represents a trackbar element. RadTrackBarElement can be nested in other telerik controls. Essentially, the RadTrackBar is a simple wrapper for the RadTrackBarElement. The former transfers events to and from its corresponding RadTrackBarElement instance.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadTrackBarElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadTrackBarElement()
Declaration
public RadTrackBarElement()
Fields
IsVerticalProperty
RangeValueChanged
Fires when a range is changed.
Declaration
public RangeChangedEventHandler RangeValueChanged
Field Value
RangeChangedEventHandler
|
Properties
AllowKeyNavigation
AutoSize
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
BodyElement
Gets the instance of TrackBarBodyElement. TrackBarBodyElement is the core element in the hierarchy tree and encapsulates the Scale and indicators functionality.
Declaration
public TrackBarBodyElement BodyElement { get; }
Property Value
TrackBarBodyElement
|
CurrentThumb
Gets or Sets the selected thumb
Declaration
public TrackBarThumbElement CurrentThumb { get; set; }
Property Value
TrackBarThumbElement
|
IsVertical
Gets or Sets TrackBar's Orientation
Declaration
public bool IsVertical { get; set; }
Property Value
System.Boolean
|
LabelStyle
Gets or Sets whether the TrackBar's labels should be drawn
Declaration
public TrackBarLabelStyle LabelStyle { get; set; }
Property Value
TrackBarLabelStyle
|
LargeChange
Gets or Sets the number of positions that the trackbar moves in response to mouse clicks.
Declaration
public int LargeChange { get; set; }
Property Value
System.Int32
|
LargeTickFrequency
Gets or Sets the number of positions between large tick marks
Declaration
public int LargeTickFrequency { get; set; }
Property Value
System.Int32
|
LeftButton
Gets instance of TrackBarArrowButton
Declaration
public TrackBarArrowButton LeftButton { get; }
Property Value
TrackBarArrowButton
|
Maximum
Gets or sets a maximum value for the trackbar position
Declaration
public float Maximum { get; set; }
Property Value
System.Single
|
Minimum
Gets or sets a minimum value for the trackbar position
Declaration
public float Minimum { get; set; }
Property Value
System.Single
|
Ranges
Gets the Range collection.
Declaration
public TrackBarRangeCollection Ranges { get; }
Property Value
TrackBarRangeCollection
|
RightButton
Gets instance of TrackBarArrowButton
Declaration
public TrackBarArrowButton RightButton { get; }
Property Value
TrackBarArrowButton
|
ShowButtons
Gets or Sets whether the TrackBar's handles should be drawn
Declaration
public bool ShowButtons { get; set; }
Property Value
System.Boolean
|
ShowSlideArea
Gets or Sets whether the SlideArea should be visible
Declaration
public bool ShowSlideArea { get; set; }
Property Value
System.Boolean
|
ShowTicks
Gets or Sets Ticks Visibility
Declaration
public bool ShowTicks { get; set; }
Property Value
System.Boolean
|
SlideAreaWidth
Gets or Sets the width of TrackBar's SlideArea
Declaration
public int SlideAreaWidth { get; set; }
Property Value
System.Int32
|
SliderAreaColor1
Gets or Sets TrackBar's sliders area color
Declaration
public Color SliderAreaColor1 { get; set; }
Property Value
System.Drawing.Color
|
SliderAreaColor2
Gets or Sets TrackBar's sliders area color
Declaration
public Color SliderAreaColor2 { get; set; }
Property Value
System.Drawing.Color
|
SliderAreaGradientAngle
Gets or Sets the gradient angle of the SliderArea
Declaration
public float SliderAreaGradientAngle { get; set; }
Property Value
System.Single
|
SmallChange
Gets or Sets the number of positions that the trackbar moves in response to keyboard arrow keys and the trackbar buttons.
Declaration
public int SmallChange { get; set; }
Property Value
System.Int32
|
SmallTickFrequency
Gets or Sets the number of positions between small tick marks
Declaration
public int SmallTickFrequency { get; set; }
Property Value
System.Int32
|
SnapFrequency
Gets or Sets the Snap frequency of the TrackBar
Declaration
public TrackBarSnapFrequency SnapFrequency { get; set; }
Property Value
TrackBarSnapFrequency
|
SnapMode
Gets or Sets the Snap mode of the TrackBar
Declaration
public TrackBarSnapModes SnapMode { get; set; }
Property Value
TrackBarSnapModes
|
ThumbSize
Gets or Sets TrackBar's Size
Declaration
public Size ThumbSize { get; set; }
Property Value
System.Drawing.Size
|
ThumbWidth
Gets or Sets TrackBar's thumbWidth
Declaration
public int ThumbWidth { get; set; }
Property Value
System.Int32
|
TickColor
Gets or Sets TrackBar's ticks color
Declaration
public Color TickColor { get; set; }
Property Value
System.Drawing.Color
|
TickFrequency
Gets or Sets the number of positions between small tick marks
Declaration
public int TickFrequency { get; set; }
Property Value
System.Int32
|
TickStyle
Gets or Sets whether the TrackBar's ticks should be drawn
Declaration
public TickStyles TickStyle { get; set; }
Property Value
TickStyles
|
TrackBarMode
Gets or Sets the Mode of the TrackBar
Declaration
public TrackBarRangeMode TrackBarMode { get; set; }
Property Value
TrackBarRangeMode
|
Value
Gets or Sets TrackBar's value
Declaration
public float Value { get; set; }
Property Value
System.Single
|
Methods
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateTrackBarBodyElement()
Declaration
protected virtual TrackBarBodyElement CreateTrackBarBodyElement()
Returns
TrackBarBodyElement
|
CreateTrackBarLeftArrowButton()
Declaration
protected virtual TrackBarArrowButton CreateTrackBarLeftArrowButton()
Returns
TrackBarArrowButton
|
CreateTrackBarRightArrowButton()
Declaration
protected virtual TrackBarArrowButton CreateTrackBarRightArrowButton()
Returns
TrackBarArrowButton
|
DpiScaleChanged(SizeF)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.Drawing.SizeF
scaleFactor
|
Overrides
FireScrollEvent(Int32)
Declaration
public void FireScrollEvent(int oldValue)
Parameters
System.Int32
oldValue
|
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnKeyDown(KeyEventArgs)
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs
e
|
Overrides
OnLabelFormatting(TrackBarLabelElement)
Declaration
protected virtual void OnLabelFormatting(TrackBarLabelElement labelElement)
Parameters
TrackBarLabelElement
labelElement
|
OnLoaded()
OnNotifyPropertyChanged(String)
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnRangeValueChanged(RangeChangedEventArgs)
Declaration
protected void OnRangeValueChanged(RangeChangedEventArgs e)
Parameters
RangeChangedEventArgs
e
|
OnScroll(ScrollEventArgs)
Declaration
public virtual void OnScroll(ScrollEventArgs e)
Parameters
System.Windows.Forms.ScrollEventArgs
e
|
OnTickFormatting(TrackBarTickElement)
Declaration
protected virtual void OnTickFormatting(TrackBarTickElement tickElement)
Parameters
TrackBarTickElement
tickElement
|
OnValueChanged(EventArgs)
Declaration
public virtual void OnValueChanged(EventArgs e)
Parameters
System.EventArgs
e
|
Events
LabelFormatting
Occurs when a Label needs to be formatted.
Declaration
public event LabelFormattingEventHandler LabelFormatting
Event Type
LabelFormattingEventHandler
|
Scroll
Occurs when the trackBar slider moves
Declaration
public event ScrollEventHandler Scroll
Event Type
System.Windows.Forms.ScrollEventHandler
|
TickFormatting
Occurs when a Tick needs to be formatted.
Declaration
public event TickFormattingEventHandler TickFormatting
Event Type
TickFormattingEventHandler
|
ValueChanged
Occurs when the value of the controls changes
Declaration
public event EventHandler ValueChanged
Event Type
System.EventHandler
|