RadialGaugeArc
Represents a band segment positioned within a radial gauge's sweep.
Definition
Namespace:Telerik.WinControls.UI.Gauges
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadialGaugeArc : GaugeVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IDrawing
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGaugeVisualElementRadialGaugeArc...
Implements:
Inherited Members
Constructors
Initializes an arc that acquires its owning gauge when added to its visual tree.
public RadialGaugeArc()
Initializes an arc with the specified thickness, value range, and owning gauge.
public RadialGaugeArc(double width, double rangeStart, double rangeEnd, RadRadialGaugeElement owner)
The arc thickness, interpreted as a percentage of half the gauge width when AutoSize is enabled.
rangeStartdoubleThe value at which the arc segment begins.
rangeEnddoubleThe value at which the arc segment ends.
ownerRadRadialGaugeElementThe gauge that supplies the range, sweep, and geometry.
Properties
Indicates whether the RangeEnd property is bound to the gauge's Value.
public bool BindEndRange { get; set; }
Specifies the end range offset of the arc according to the gauge's value.
public double BindEndRangeOffset { get; set; }
Indicates whether the RangeStart property is bound to the gauge's Value.
public bool BindStartRange { get; set; }
Specifies the start range offset of the arc according to the gauge's value.
public double BindStartRangeOffset { get; set; }
Gets or sets the factory used to create the arc's painting brush. The arc disposes each brush returned during painting.
[Browsable(false)]
public IBrushFactory BrushFactory { get; set; }
Gets or sets the brush style passed to BrushFactory when the arc is painted.
public GaugeBrushType BrushType { get; set; }
Gets the outer radius computed from Radius or the owning gauge's label radius and gap when the path is generated.
[Browsable(false)]
public double OutherRadiusPercentage { get; }
Gets the gauge that supplies this arc's value range and geometry.
public RadRadialGaugeElement Owner { get; }
Gets the band geometry for the configured value interval, clipped to the gauge's sweep. An empty path is returned when either computed radius is nonpositive.
public override GraphicsPath Path { get; }
Overrides:
Controls the outer radius of the arc. When AutoSize is enabled, a nonzero value is a percentage of half the gauge width; zero uses the gauge's label radius minus its label gap.
public double Radius { get; set; }
The start of the arc.
public double RangeStart { get; set; }
Methods
Initializes the arc's default colors and gradient settings.
protected override void CreateChildElements()
Overrides:
Recreates the arc's shape when a property other than Shape changes, then invalidates the visual.
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
The changed property information.
Overrides:
Associates the arc with its parent gauge, subscribes to value changes, and refreshes any bound range endpoints.
protected override void OnParentChanged(RadElement previousParent)
The element that was previously the parent.
Overrides:
Fills the computed arc segment when its width is positive. The supplied bounds are not used to calculate the segment geometry.
Routes framework painting through the GDI+ arc renderer.