Present additional information for the RadLinearGauge.
Definition
Namespace:Telerik.WinControls.UI.Gauges
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LinearGaugeNeedleIndicator : GaugeVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IDrawing
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGaugeVisualElementLinearGaugeNeedleIndicator...
Implements:
Inherited Members
Constructors
Creates a needle indicator with its initial value and default appearance.
public LinearGaugeNeedleIndicator()
Creates a needle indicator associated with a gauge so it can track gauge-value changes.
public LinearGaugeNeedleIndicator(RadLinearGaugeElement owner)
The gauge that supplies the scale and value-change notifications.
Fields
Identifies the needle's Value property; its metadata default is 0, while a newly initialized indicator sets the value to 50.
public static RadProperty ValueProperty
Properties
Specifies the value offset of the needle according to the gauge's value.
public float BindOffset { get; set; }
Indicates whether the needle's value is bound to the gauge's Value.
public bool BindValue { get; set; }
Controls whether the needle head is drawn as an ellipse instead of a triangular pointer.
public bool CircleTicks { get; set; }
Gets or sets the direction in which the needle points.
public Direction Direction { get; set; }
Gets or sets whether a value label is drawn at the position set by TextOffsetFromIndicator; LabelFormat controls its format.
public bool DrawValue { get; set; }
Gets or sets whether the needle shape is filled as well as outlined.
public bool IsFilled { get; set; }
Gets or sets a stored font-size value; the getter applies the gauge's vertical DPI scale. The current value-label renderer uses Font instead, so this property does not affect the rendered label.
public float LabelFontSize { get; set; }
Specifies the label format. By default, it is set to #,##0.#.
public string LabelFormat { get; set; }
Controls how long the needle will be rendered.
public float LengthPercentage { get; set; }
Gets or sets the length of the needle stem beyond its head. With automatic sizing enabled, this is a percentage of the gauge's cross-axis length.
public float LineLength { get; set; }
Gets or sets the needle's offset from the gauge's cross-axis origin. The value is added directly to the coordinate; it is not normalized as a percentage.
public float LocationPercentage { get; set; }
Gets the needle-head and stem geometry positioned at the gauge coordinate for Value.
public override GraphicsPath Path { get; }
Overrides:
Specifies the outer radius of the needle's start point.
public float PointRadiusPercentage { get; set; }
Gets or sets the offset from the needle path's first point to the displayed value label.
public SizeF TextOffsetFromIndicator { get; set; }
Methods
Initializes the needle's black appearance and sets its initial value to 50.
protected override void CreateChildElements()
Overrides:
Recreates the needle shape for property changes other than Shape, then invalidates the visual.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the changed property.
Overrides:
Associates the needle with a parent gauge, subscribes to its value changes, and initializes a bound needle value.
protected override void OnParentChanged(RadElement previousParent)
The previous parent element.
Overrides:
Raises the ValueChanged event.
protected void OnValueChanged()
Paints the needle through the GDI+ implementation used by this visual element.
Events
Occurs after the Value property is assigned.
public event EventHandler ValueChanged