ClassRadTrackBar
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.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Editors")]
public class RadTrackBar : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadTrackBar
Implements:
Inherited Members
Constructors
RadTrackBar()
Initializes a new instance of the RadTrackBar class.
Declaration
public RadTrackBar()
Properties
AllowKeyNavigation
Gets or sets whether key navigation is allowed on the trackbar.
Declaration
[Browsable(true)]
public bool AllowKeyNavigation { get; set; }
Property Value
AutoSize
Gets or sets whether the control automatically adjusts its size.
Declaration
[Browsable(true)]
public override bool AutoSize { get; set; }
Property Value
Overrides
DefaultSize
Gets the default size for the track bar control.
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
LabelStyle
Gets or sets the label style for the trackbar.
Declaration
[Browsable(true)]
public TrackBarLabelStyle LabelStyle { get; set; }
Property Value
LargeChange
Gets or sets the large change value for the trackbar.
Declaration
[Browsable(true)]
public int LargeChange { get; set; }
Property Value
LargeTickFrequency
Gets or sets the frequency of large tick marks on the trackbar.
Declaration
[Browsable(true)]
public int LargeTickFrequency { get; set; }
Property Value
Maximum
Gets or sets the maximum value for the trackbar position.
Declaration
[Browsable(true)]
public float Maximum { get; set; }
Property Value
Minimum
Gets or sets the minimum value for the trackbar position.
Declaration
[Browsable(true)]
public float Minimum { get; set; }
Property Value
Orientation
Gets or sets the orientation of the trackbar (horizontal or vertical).
Declaration
[Browsable(true)]
public Orientation Orientation { get; set; }
Property Value
Ranges
Gets the collection of ranges defined for the trackbar.
Declaration
[Browsable(true)]
public TrackBarRangeCollection Ranges { get; }
Property Value
ShowButtons
Gets or sets whether buttons are displayed on the trackbar.
Declaration
[Browsable(true)]
public bool ShowButtons { get; set; }
Property Value
ShowSlideArea
Gets or sets whether the slide area is displayed on the trackbar.
Declaration
[Browsable(true)]
public bool ShowSlideArea { get; set; }
Property Value
SmallChange
Gets or sets the small change value for the trackbar.
Declaration
[Browsable(true)]
public int SmallChange { get; set; }
Property Value
SmallTickFrequency
Gets or sets the frequency of small tick marks on the trackbar.
Declaration
[Browsable(true)]
public int SmallTickFrequency { get; set; }
Property Value
SnapFrequency
Gets or sets the frequency of snap points on the trackbar.
Declaration
[Browsable(true)]
public TrackBarSnapFrequency SnapFrequency { get; set; }
Property Value
SnapMode
Gets or sets the snap mode for the trackbar.
Declaration
[Browsable(true)]
public TrackBarSnapModes SnapMode { get; set; }
Property Value
TextOrientation
Gets or sets the orientation of the text displayed on the trackbar.
Declaration
[Browsable(true)]
public Orientation TextOrientation { get; set; }
Property Value
ThumbSize
Gets or sets the size of the thumb on the trackbar.
Declaration
[Browsable(true)]
public Size ThumbSize { get; set; }
Property Value
TickStyle
Gets or sets the style of the tick marks displayed on the trackbar.
Declaration
[Browsable(true)]
public TickStyles TickStyle { get; set; }
Property Value
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
[Browsable(false)]
public RadTrackBarElement TrackBarElement { get; }
Property Value
TrackBarMode
Gets or sets the mode of the trackbar range.
Declaration
[Browsable(true)]
public TrackBarRangeMode TrackBarMode { get; set; }
Property Value
Methods
CreateChildItems(RadElement)
Creates the child elements for the track bar control.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
The parent element to which child elements will be added.
Overrides
CreateTrackBarElement()
Creates the associated RadTrackBarElement.
Declaration
protected virtual RadTrackBarElement CreateTrackBarElement()
Returns
A new instance of RadTrackBarElement.
Dispose(bool)
Releases the unmanaged resources used by the RadTrackBar and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
True to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides
InitializeRootElement(RootRadElement)
Initializes the root element with track bar-specific settings.
Declaration
protected override void InitializeRootElement(RootRadElement rootElement)
Parameters
rootElement
The root element to initialize.
Overrides
OnGotFocus(EventArgs)
Called when the control receives focus and transfers focus to the track bar element.
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
e
The event arguments.
Overrides
OnLabelFormatting(LabelFormattingEventArgs)
Raises the LabelFormatting event.
Declaration
protected virtual void OnLabelFormatting(LabelFormattingEventArgs e)
Parameters
e
The label formatting event arguments.
OnTickFormatting(TickFormattingEventArgs)
Raises the TickFormatting event.
Declaration
protected virtual void OnTickFormatting(TickFormattingEventArgs e)
Parameters
e
The tick formatting event arguments.
OnValueChanged(EventArgs)
Raises the ValueChanged event.
Declaration
protected virtual void OnValueChanged(EventArgs e)
Parameters
e
The event arguments.
ProcessAutoSizeChanged(bool)
Processes changes to the AutoSize property and updates element stretching behavior.
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
value
The new AutoSize value.
Overrides
ProcessDialogKey(Keys)
Processes dialog keys for track bar navigation when AllowKeyNavigation is enabled.
ResetBackColorThemeOverrides()
Resets theme overrides for the background color property.
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Resets theme overrides for the foreground color property.
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
SetBackColorThemeOverrides()
Sets theme overrides for the background color property.
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Sets theme overrides for the foreground color property.
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
UnwireEvents()
Unwires event handlers from the track bar element.
Declaration
protected virtual void UnwireEvents()
WireEvents()
Wires up event handlers for the track bar element.
Declaration
protected virtual void WireEvents()
Events
LabelFormatting
Occurs when a label needs to be formatted.
Declaration
public event LabelFormattingEventHandler LabelFormatting
Event Value
RangeValueChanged
Occurs when a range value is changed.
Declaration
public event RangeChangedEventHandler RangeValueChanged
Event Value
TickFormatting
Occurs when a tick mark needs to be formatted.
Declaration
public event TickFormattingEventHandler TickFormatting
Event Value
ValueChanged
Occurs when the Value property changes.