Class LineRoutingSettings
Represents settings for customizing line routing in the diagram.
Inheritance
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class LineRoutingSettings : OwningComponentBase
Examples
Example usage:
<SfDiagramComponent>
<LineRoutingSettings RoutingType="RoutingTypes.Classic">
</LineRoutingSettings>
</SfDiagramComponent>
Constructors
LineRoutingSettings()
Declaration
public LineRoutingSettings()
Properties
ChildContent
Gets or sets the child content of the LineRoutingSettings.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment |
ObstaclePadding
Gets or sets the distance from an obstacle node to route the connector for advanced routing.
Declaration
public double ObstaclePadding { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 12. |
Remarks
This property is only applicable when the RoutingType property is set to Advanced.
Examples
Example usage:
<SfDiagramComponent>
<LineRoutingSettings RoutingType="RoutingTypes.Advanced" ObstaclePadding="12">
</LineRoutingSettings>
</SfDiagramComponent>
ObstaclePaddingChanged
Specifies the callback to trigger when the ObstaclePadding changes.
Declaration
public EventCallback<double> ObstaclePaddingChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<System.Double> |
RoutingType
Gets or sets the type of line routing in the diagram.
Declaration
public RoutingTypes RoutingType { get; set; }
Property Value
Type | Description |
---|---|
RoutingTypes | An enumeration value of RoutingTypes representing the type of line routing. The default value is Classic. |
Remarks
- Classic: Specifies the routing type as classic to produce a fast routing.
- Advanced: Defines the routing type as advanced to produce an accurate routing.
Examples
Example usage:
<SfDiagramComponent>
<LineRoutingSettings RoutingType="RoutingTypes.Classic">
</LineRoutingSettings>
</SfDiagramComponent>
RoutingTypeChanged
Specifies the callback to trigger when the RoutingType changes.
Declaration
public EventCallback<RoutingTypes> RoutingTypeChanged { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.EventCallback<RoutingTypes> |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose()
This method releases all unmanaged resources.
Declaration
public void Dispose()
OnAfterRenderAsync(Boolean)
Method invoked after each time the component has been rendered.
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender | Set to true for the first time component rendering; otherwise gets false. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
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. |