Syncfusion.Gauge.WPF
Members  Example 


Syncfusion.Windows.Gauge Namespace : CircularRange Class

CircularRange Class

Represents the range visual element, which spans a range of consecutive values represented by a visual.
Syntax
'Declaration
 
<StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public Class CircularRange 
   Inherits RangeBase
'Usage
 
Dim instance As CircularRange
[StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public class CircularRange : RangeBase 
Remarks
The Range's RangeBase.EndValue should be specified before RangeBase.StartValue because of the constraint that the RangeBase.StartValue should not be greater than RangeBase.EndValue
Example
using System;
using System.Windows;
using System.Windows.Controls;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace CircularRangeSample
{
    public partial class Window1 : Window
    {
        private CircularScale m_scale;        
        private CircularGauge m_gauge;
        public Window1()
        {
            InitializeComponent();
            m_scale = new CircularScale();
            m_gauge = new CircularGauge();
            m_scale.ShadowOffset = 1;
            m_scale.Minimum = 0;
            m_scale.Maximum = 100;
            m_scale.MinorIntervalValue = 2;
            m_scale.MajorIntervalValue = 10;
            m_scale.StartAngle = 120;
            m_scale.GapSweepAngle = 300;
            m_scale.ScaleBarSize = 1.5;
            m_scale.Radius = 116;
            this.m_gauge.Scales.Add(m_scale);
            CircularRange range1 = new CircularRange();
            range1.StartValue = 40;
            range1.EndValue = 80;
            range1.StartWidth = 5;
            range1.EndWidth = 20;
            range1.RangePosition = ScalePlacement.Inside;
            range1.DistanceFromScale = 7;
            m_scale.Ranges.Add(range1);
            this.Content = m_gauge;
        }
    }
}
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     Syncfusion.Windows.Gauge.GaugeElement
                        Syncfusion.Windows.Gauge.RangeBase
                           Syncfusion.Windows.Gauge.CircularRange

AssemblyVersion

Syncfusion.Gauge.WPF: 17.4460.0.39

See Also