Class HorizontalRuler
Defines the appearance and properties of Horizontal ruler
Inheritance
System.Object
Syncfusion.Blazor.SfBaseComponent
Syncfusion.Blazor.SfBaseExtension
HorizontalRuler
Inherited Members
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class HorizontalRuler : DiagramsRuler
Remarks
The Horizontal Ruler appearance can be customized according to the user’s perception. |
Examples
<SfDiagram>
//Set the HorizontallRuler in DiagramRulerSettings
<DiagramRulerSettings HorizontalRuler = "@HorizontalRulers" ></ DiagramRulerSettings >
</ SfDiagram >
@code
{
HorizontalRuler HorizontalRulers = new HorizontalRuler()
{
MarkerColor = "red",
Orientation = RulerOrientation.Horizontal,
TickAlignment = TickAlignment.LeftOrTop
};
}
Constructors
HorizontalRuler()
Declaration
public HorizontalRuler()
Properties
ChildContent
Represents a segment of UI content, implemented.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment |
jsProperty
Declaration
protected override string jsProperty { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose()
Declaration
public override void Dispose()
Overrides
Syncfusion.Blazor.SfBaseExtension.Dispose()
GetJSNamespace()
Declaration
public string GetJSNamespace()
Returns
Type | Description |
---|---|
System.String | Get the parent namespaces |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Returns asynchronous operation when the component is ready to start, having received its initial parameters from its parent in the render tree |