LinearGaugeBar
Represent a continuous band in Linear Gauge
Definition
Namespace:Telerik.WinControls.UI.Gauges
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LinearGaugeBar : GaugeVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IDrawing
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGaugeVisualElementLinearGaugeBar...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a bar visual with its border disabled.
public LinearGaugeBar()
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 factory that creates the brush used to fill the bar.
public IBrushFactory BrushFactory { get; set; }
Gets or sets the brush style passed to BrushFactory when the bar is painted.
public GaugeBrushType BrushType { get; set; }
Gets or sets which cross-axis edge anchors the bar; the opposite setting anchors it to the other edge.
public bool IsTopToBottom { get; set; }
Gets or sets the bar's offset from the cross-axis edge of the scale; the reference edge depends on IsTopToBottom.
public float Offset { get; set; }
Gets the linear gauge whose scale and current value position this bar.
public RadLinearGaugeElement Owner { get; }
Gets the quadrilateral spanning RangeStart and RangeEnd, with widths set by Width and Width2.
public override GraphicsPath Path { get; }
Overrides:
Gets or sets the gauge-scale value at which the bar ends.
public float RangeEnd { get; set; }
Gets or sets the gauge-scale value at which the bar begins.
public float RangeStart { get; set; }
Gets or sets the bar width at RangeStart. When automatic sizing is enabled, the value is a percentage of the available cross-axis length.
public float Width { get; set; }
Methods
Disables text and border drawing, sets the initial colors, and creates the default linear-gauge brush factory.
protected override void CreateChildElements()
Overrides:
Invalidates the bar 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 bar with a parent linear gauge, tracks its value changes, and updates bound range endpoints.
protected override void OnParentChanged(RadElement previousParent)
The previous parent element.
Overrides:
Fills and outlines the bar's computed path using the configured brush factory and brush type.
Paints the bar through the GDI+ implementation used by this visual element.