Class RadLinearGaugeElement
Represents the main linear gauge element that serves as a container for all other gauge components including bars, ticks, labels, and needle indicators.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Gauges
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadLinearGaugeElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadLinearGaugeElement()
Initializes a new instance of the RadLinearGaugeElement class.
Declaration
public RadLinearGaugeElement()
Fields
ValueProperty
Identifies the Value dependency property.
Declaration
public static RadProperty ValueProperty
Field Value
RadProperty
|
Properties
GaugeFullLength
Gets the full length of the gauge element including borders along its primary axis.
Declaration
protected float GaugeFullLength { get; }
Property Value
System.Single
|
GaugeLength
Gets the length of the gauge along its primary axis (width for horizontal, height for vertical).
Declaration
protected float GaugeLength { get; }
Property Value
System.Single
|
GaugeOtherSizeFullLength
Gets the full length of the gauge element including borders along its secondary axis.
Declaration
protected float GaugeOtherSizeFullLength { get; }
Property Value
System.Single
|
GaugeOtherSizeLength
Gets the length of the gauge along its secondary axis (height for horizontal, width for vertical).
Declaration
protected float GaugeOtherSizeLength { get; }
Property Value
System.Single
|
GaugeStartPoint
Gets the starting point coordinate of the gauge along its primary axis.
Declaration
protected float GaugeStartPoint { get; }
Property Value
System.Single
|
Items
Gets the collection of gauge items (bars, ticks, labels, needles, etc.) that comprise the gauge.
Declaration
[RadEditItemsAction]
public virtual RadItemOwnerCollection Items { get; }
Property Value
RadItemOwnerCollection
|
RangeEnd
Gets or sets the maximum value of the gauge range.
Declaration
public float RangeEnd { get; set; }
Property Value
System.Single
|
RangeStart
Gets or sets the minimum value of the gauge range.
Declaration
public float RangeStart { get; set; }
Property Value
System.Single
|
Value
Gets or sets the current value displayed on the gauge within the specified range.
Declaration
public float Value { get; set; }
Property Value
System.Single
|
Vertical
Gets or sets a value indicating whether the gauge is oriented vertically.
Declaration
public bool Vertical { get; set; }
Property Value
System.Boolean
|
Methods
OnNotifyPropertyChanged(String)
Notifies that a property has changed and invalidates the element for redrawing.
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
The name of the property that changed. |
Overrides
OnOrientationChanged()
Raises the OrientationChanged event when the gauge orientation is modified.
Declaration
protected void OnOrientationChanged()
OnPropertyChanged(RadPropertyChangedEventArgs)
Called after a property value has been changed to handle the change.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
The property changed event arguments. |
Overrides
OnPropertyChanging(RadPropertyChangingEventArgs)
Called before a property value is changed to allow validation and cancellation.
Declaration
protected override void OnPropertyChanging(RadPropertyChangingEventArgs args)
Parameters
RadPropertyChangingEventArgs
args
The property changing event arguments. |
Overrides
OnValueChanged()
Raises the ValueChanged event when the gauge value is modified.
Declaration
protected void OnValueChanged()
Events
OrientationChanged
Occurs when the orientation of the gauge is changed between horizontal and vertical.
Declaration
public event EventHandler OrientationChanged
Event Type
System.EventHandler
|
ValueChanged
Occurs when the gauge value is modified.
Declaration
public event EventHandler ValueChanged
Event Type
System.EventHandler
|