menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Ruler - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Ruler

    Inheritance
    System.Object
    Ruler
    Namespace: Syncfusion.UI.Xaml.Diagram.Controls
    Assembly: Syncfusion.SfDiagram.UWP.dll
    Syntax
    public class Ruler : ContentControl

    Constructors

    Ruler()

    Initializes a new instance of the Ruler class.

    Declaration
    public Ruler()

    Fields

    OffsetProperty

    Provides information about the Offset property.

    Declaration
    public static DependencyProperty OffsetProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    OrientationProperty

    Provides information about the Orientation property.

    Declaration
    public static DependencyProperty OrientationProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ScaleProperty

    Provides information about the Scale property.

    Declaration
    public static DependencyProperty ScaleProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ThicknessProperty

    Provides information about the Thickness property.

    Declaration
    public static DependencyProperty ThicknessProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    Offset

    Gets or sets the offset values to the ruler which is position to the rulers.

    Declaration
    public double Offset { get; set; }
    Property Value
    Type
    System.Double

    Orientation

    Gets or sets the orientation value to the ruler.

    Declaration
    public Orientation Orientation { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Controls.Orientation

    Scale

    Gets or sets the scale factor value to the rulers.

    Declaration
    public double Scale { get; set; }
    Property Value
    Type
    System.Double

    Thickness

    Gets or sets the thickness value of the rulers.

    Declaration
    public double Thickness { get; set; }
    Property Value
    Type
    System.Double

    Methods

    ArrangeOverride(Size)

    Overridden to positions the ruler and its segements and determines the arranged size of the ruler.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    Windows.Foundation.Size finalSize

    The size of the rulers in which size the ruler is going to be arranged.

    Returns
    Type Description
    Windows.Foundation.Size

    The size of the ruler control.

    GetNewSegment()

    Creats and returns the new instance of RulerSegment class.

    Declaration
    protected virtual RulerSegment GetNewSegment()
    Returns
    Type Description
    RulerSegment

    Returns the RulerSegmentclass instance.

    MeasureOverride(Size)

    Overridden to measure the size of the ruler and its segments and determines a size for the ruler control.

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    Windows.Foundation.Size availableSize

    The size of the ruler control in which size the elements are going to measure.

    Returns
    Type Description
    Windows.Foundation.Size

    Returns the size of the ruler control.

    OnApplyTemplate()

    Declaration
    protected override void OnApplyTemplate()

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved