Class HorizontalGridLines
Represents the horizontal grid lines configuration for the SfDiagramComponent.
Inherited Members
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". |