Class RadTrackBar
Represents a track bar. The trackbar class is essentially a simple wrapper for the RadTrackBarElement. All UI and logic functionality is implemented in the RadTrackBarElement class. The RadTrackBar acts to transfer the events to and from its corresponding RadTrackBarElement instance. The RadTrackBarElement may be nested in other telerik controls.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Editors")]
public class RadTrackBar : RadEditorControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadTrackBar()
Declaration
public RadTrackBar()
Properties
AllowKeyNavigation
AutoSize
Gets or sets whether the edit control is auto-sized
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
DefaultSize
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
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
|
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
|
Orientation
Gets or Sets the orientation of the TrackBar
Declaration
public Orientation Orientation { get; set; }
Property Value
System.Windows.Forms.Orientation
|
Ranges
Gets the Range collection.
Declaration
public TrackBarRangeCollection Ranges { get; }
Property Value
TrackBarRangeCollection
|
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
|
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
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
TextOrientation
Gets or Sets the orientation of the text associated with TrackBar. Whether it should appear horizontal or vertical.
Declaration
public Orientation TextOrientation { get; set; }
Property Value
System.Windows.Forms.Orientation
|
ThumbSize
Gets or Sets TrackBar's Size
Declaration
public Size ThumbSize { get; set; }
Property Value
System.Drawing.Size
|
TickStyle
Gets or Sets whether the TrackBar's ticks should be drawn
Declaration
public TickStyles TickStyle { get; set; }
Property Value
TickStyles
|
TrackBarElement
Gets the instance of RadTrackBarElement wrapped by this control. RadTrackBarElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadTrackBar.
Declaration
public RadTrackBarElement TrackBarElement { get; }
Property Value
RadTrackBarElement
|
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
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
CreateTrackBarElement()
Creates the associated TrackBar element.
Declaration
protected virtual RadTrackBarElement CreateTrackBarElement()
Returns
RadTrackBarElement
RadTrackBarElement |
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Overrides
InitializeRootElement(RootRadElement)
Declaration
protected override void InitializeRootElement(RootRadElement rootElement)
Parameters
RootRadElement
rootElement
|
Overrides
OnGotFocus(EventArgs)
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnLabelFormatting(LabelFormattingEventArgs)
Declaration
protected virtual void OnLabelFormatting(LabelFormattingEventArgs e)
Parameters
LabelFormattingEventArgs
e
|
OnTickFormatting(TickFormattingEventArgs)
Declaration
protected virtual void OnTickFormatting(TickFormattingEventArgs e)
Parameters
TickFormattingEventArgs
e
|
OnValueChanged(EventArgs)
Declaration
protected virtual void OnValueChanged(EventArgs e)
Parameters
System.EventArgs
e
|
ProcessAutoSizeChanged(Boolean)
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
System.Boolean
value
|
Overrides
ProcessDialogKey(Keys)
Declaration
protected override bool ProcessDialogKey(Keys keyData)
Parameters
System.Windows.Forms.Keys
keyData
|
Returns
System.Boolean
|
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
UnwireEvents()
Declaration
protected virtual void UnwireEvents()
WireEvents()
Declaration
protected virtual void WireEvents()
Events
LabelFormatting
Occurs when a Label needs to be formatted.
Declaration
public event LabelFormattingEventHandler LabelFormatting
Event Type
LabelFormattingEventHandler
|
RangeValueChanged
Fires when a range is changed.
Declaration
public event RangeChangedEventHandler RangeValueChanged
Event Type
RangeChangedEventHandler
|
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
|