ClassLinearGaugeNeedleIndicator
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
LinearGaugeNeedleIndicator()
Declaration
public LinearGaugeNeedleIndicator()
LinearGaugeNeedleIndicator(RadLinearGaugeElement)
Declaration
public LinearGaugeNeedleIndicator(RadLinearGaugeElement owner)
Parameters
owner
Fields
Properties
BindOffset
Specifies the value offset of the needle according to the gauge's value.
BindValue
Indicates whether the needle's value is bound to the gauge's Value.
CircleTicks
Controls whether the specific ticks are circle or not.
LabelFormat
Specifies the label format. By default, it is set to #,##0.#.
LengthPercentage
Controls how long the needle will be rendered.
Path
Declaration
public override GraphicsPath Path { get; }
Property Value
Overrides
PointRadiusPercentage
Specifies the outer radius of the needle's start point.
TextOffsetFromIndicator
Declaration
public SizeF TextOffsetFromIndicator { get; set; }
Property Value
Thickness
Controls the needle width.
Methods
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
HitTest(Point)
Performs hit testing on the element to determine if the specified point lies within its bounds.
OnNotifyPropertyChanged(string)
Raises the standard .NET PropertyChanged event with the specified property name to notify subscribers of property value changes.
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property that changed.
Overrides
OnParentChanged(RadElement)
Notifies for a change in the Parent value.
Declaration
protected override void OnParentChanged(RadElement previousParent)
Parameters
previousParent
The previous parent element (if any)
Overrides
OnValueChanged()
Declaration
protected void OnValueChanged()
PaintElement(IGraphics, float, SizeF)
Performs the main painting operation for the element, rendering fill, content, and border in the correct order.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics context used for rendering.
angle
The rotation angle to apply during painting.
scale
The scaling factor to apply during painting.
Overrides