Class RulerSegment
Inheritance
Namespace: Syncfusion.UI.Xaml.Diagram.Controls
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public class RulerSegment : ContentControl
Constructors
RulerSegment()
Initializes a new instance of the RulerSegment class.
Declaration
public RulerSegment()
Fields
IntervalsProperty
Provides information about the Intervals property.
Declaration
public static DependencyProperty IntervalsProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
StartValueProperty
Provides information about the StartValue property.
Declaration
public static DependencyProperty StartValueProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
Intervals
Gets or sets the intervels values to the ruler segments. It specifies the number of segments line can display per Unit.
Declaration
public int Intervals { get; set; }
Property Value
Type |
---|
System.Int32 |
Ruler
Gets the ruler value to which the segment is going to be added.
Declaration
public Ruler Ruler { get; }
Property Value
Type |
---|
Ruler |
SegmentWidth
Gets the width value to the segment of the ruler.
Declaration
public double SegmentWidth { get; }
Property Value
Type |
---|
System.Double |
StartValue
Gets ot sets the starting number value to the ruler scale. It specifies that the starting value of the ruler scale can be anywhere.
Declaration
public double StartValue { get; }
Property Value
Type |
---|
System.Double |
Methods
ArrangeOverride(Size)
Overridden to positions the ruler segements and determines the arranged size of the segments of the ruler.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | finalSize | The size ruler segments in which size the ruler segements are going to be arranged. |
Returns
Type | Description |
---|---|
Windows.Foundation.Size | Returns the size of the segments |
GetNewTick()
To get the new ticks values to the segements.
Declaration
protected virtual Tick GetNewTick()
Returns
Type | Description |
---|---|
Tick | Returns the tick values. |
GetSegmentWidth()
To gets the width value of each ruler segments.
Declaration
public virtual double GetSegmentWidth()
Returns
Type | Description |
---|---|
System.Double | Returns width of the ruler segment. |
MeasureOverride(Size)
Overridden to measure and determines the size of the ruler segments.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | availableSize | The size of ruler segments in which size the ruler segements are going to be measure. |
Returns
Type | Description |
---|---|
Windows.Foundation.Size | Returns the size of the ruler segments. |
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
UpdateLabel(TextBlock)
Defines and updates the labels position of the ruler.
Declaration
protected virtual void UpdateLabel(TextBlock label)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.TextBlock | label | Label for current ruler segment. |