menu

Blazor

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

    Show / Hide Table of Contents

    Class HorizontalGridLines

    Represents the horizontal grid lines configuration for the SfDiagramComponent.

    Inheritance
    System.Object
    DiagramGridLines
    HorizontalGridLines
    Inherited Members
    DiagramGridLines.Dispose()
    DiagramGridLines.DotIntervals
    DiagramGridLines.DotIntervalsChanged
    DiagramGridLines.LineColor
    DiagramGridLines.LineColorChanged
    DiagramGridLines.LineDashArray
    DiagramGridLines.LineDashArrayChanged
    DiagramGridLines.LineIntervals
    DiagramGridLines.LineIntervalsChanged
    DiagramGridLines.OnAfterRenderAsync(Boolean)
    DiagramGridLines.SnapIntervals
    DiagramGridLines.SnapIntervalsChanged
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class HorizontalGridLines : DiagramGridLines
    Remarks

    Horizontal grid lines provide visual guidance for object alignment and are displayed when ShowLines is enabled in SnapSettings.

    Inherits from DiagramGridLines providing standard customization options for line appearance and spacing.

    Examples

    The following example demonstrates how to configure horizontal grid lines with custom styling.

    <SfDiagramComponent Height="600px">
        @* Shows vertical grid lines *@
        <SnapSettings Constraints = "SnapConstraints.ShowLines" >
            @* Customizes the line color and line style to the grid lines*@
            <HorizontalGridLines LineColor="blue" LineDashArray="2,2" />               
        </SnapSettings>
    </SfDiagramComponent>

    Constructors

    HorizontalGridLines()

    Declaration
    public HorizontalGridLines()

    Methods

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

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

    OnParametersSetAsync()

    Method invoked when any changes in component state occurs.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    ="Task".

    Overrides
    DiagramGridLines.OnParametersSetAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved