LinearGaugeLine
Represents a line segment across a range of a linear gauge's scale.
Definition
Namespace:Telerik.WinControls.UI.Gauges
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LinearGaugeLine : GaugeVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IDrawing
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGaugeVisualElementLinearGaugeLine...
Implements:
Inherited Members
Constructors
Creates a line visual with its border disabled.
public LinearGaugeLine()
Properties
Indicates whether the RangeEnd property is bound to the gauge's Value.
public bool BindEndRange { get; set; }
Specifies the amount added to the owning gauge's value to calculate RangeEnd when BindEndRange is enabled.
public float BindEndRangeOffset { get; set; }
Indicates whether the RangeStart property is bound to the gauge's Value.
public bool BindStartRange { get; set; }
Specifies the amount added to the owning gauge's value to calculate RangeStart when BindStartRange is enabled.
public float BindStartRangeOffset { get; set; }
Gets or sets the brush factory reference. The current line-rendering path does not call this factory.
public IBrushFactory BrushFactory { get; set; }
Gets or sets the stored brush style. The current line renderer uses BackColor and does not apply this setting.
public GaugeBrushType BrushType { get; set; }
Gets or sets the line's offset from the top edge of a horizontal scale or the left edge of a vertical scale.
public float Offset { get; set; }
Gets the linear gauge whose scale positions this line's endpoints.
public RadLinearGaugeElement Owner { get; }
Gets the line segment whose endpoints correspond to RangeStart and RangeEnd.
public override GraphicsPath Path { get; }
Overrides:
Gets or sets the gauge-scale value at which the line ends.
public float RangeEnd { get; set; }
Gets or sets the gauge-scale value at which the line begins.
public float RangeStart { get; set; }
Methods
Disables text and border drawing and sets the initial line color to black.
protected override void CreateChildElements()
Overrides:
Invalidates the line after a property change so its geometry and appearance are redrawn.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the changed property.
Overrides:
Associates the line with a parent linear gauge and listens for gauge-value changes that update bound range endpoints.
protected override void OnParentChanged(RadElement previousParent)
The previous parent element.
Overrides:
Draws the line path using the configured color and thickness.
Paints the line through the GDI+ implementation used by this visual element.