alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class HorizontalRuler

    Represents the horizontal ruler component that provides measurement guidance along the horizontal axis of a diagram.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    DiagramRuler
    HorizontalRuler
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    DiagramRuler.Interval
    DiagramRuler.IntervalChanged
    DiagramRuler.IsVisible
    DiagramRuler.IsVisibleChanged
    DiagramRuler.MarkerColor
    DiagramRuler.MarkerColorChanged
    DiagramRuler.OnAfterRenderAsync(bool)
    DiagramRuler.TickAlignment
    DiagramRuler.TickAlignmentChanged
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class HorizontalRuler : DiagramRuler, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    It customizes the appearance settings for the horizontal ruler in diagram components.RulerSettings.

    Extends DiagramRuler to provide horizontal-specific functionality for precise element alignment and positioning.

    Examples

    The following example demonstrates how to configure the horizontal ruler in a Blazor Diagram component.

    <SfDiagramComponent Height = "600px">
        <RulerSettings>
            <HorizontalRuler Interval="7" MarkerColor="red" TickAlignment="TickAlignment.RightAndBottom">
            </HorizontalRuler>
        </RulerSettings>
    </SfDiagramComponent>

    Constructors

    HorizontalRuler()

    Declaration
    public HorizontalRuler()

    Methods

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    Method invoked when any changes in component state occurs.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    ="Task".

    Overrides
    DiagramRuler.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved