Class CircularLabelTickCollection
Represents the numeric label tick of the circular scale.
Inheritance
Namespace: Syncfusion.Windows.Gauge
Assembly: Syncfusion.Gauge.WPF.dll
Syntax
public class CircularLabelTickCollection : ObservableCollection<CircularLabelTick>
Remarks
The CicularLabelTick can be made to display Labels for either the MajorTick or MinorTick. The Tick to which the labels should be placed is set by using the TickStyle property.
Examples
using System;
using System.Windows;
using System.Windows.Controls;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace CircularLableTickSample
{
public partial class Window1 : Window
{
private CircularGauge m_gauge;
private CircularScale m_scale;
private CircularLabelTick m_label;
public Window1()
{
InitializeComponent();
m_gauge = new CircularGauge();
m_scale = new CircularScale();
m_label = new CircularLabelTick();
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 = 10;
m_scale.Radius = 116;
m_label.TickPlacement = ScalePlacement.Inside;
m_label.DistanceFromScale = 5;
m_label.FontSize = 13;
m_label.TickStyle = TickStyle.MajorTick;
m_label.BackgroundBrush = Brushes.GhostWhite;
m_gauge.Scales.Add(m_scale);
m_scale.Ticks.Add(m_label);
this.Content = m_gauge;
}
}
}
Constructors
CircularLabelTickCollection()
Declaration
public CircularLabelTickCollection()