Class BridgeDirection
BridgeDirection allows the user to set the bridging (crossover to avoid intersection) direction according to their preference.
Inheritance
System.Object
BridgeDirection
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class BridgeDirection : Enum
Remarks
The following code snippet is an example to set the bridge’s direction to the right. |
Examples
<SfDiagram Height="600px" Connectors="@ConnectorCollection" Constraints="@DiagramConstraints" BridgeDirection="BridgeDirection.Right"/>
@code
{
public ObservableCollection<DiagramConnector> ConnectorCollection = new ObservableCollection<DiagramConnector>();
//Enable the bridging constraint for diagram.
public DiagramConstraints DiagramConstraints = DiagramConstraints.Default | DiagramConstraints.Bridging;
protected override void OnInitialized()
{
DiagramConnector DiagramConnector1 = new DiagramConnector()
{
SourcePoint = new ConnectorSourcePoint() { X = 200, Y = 200 },
TargetPoint = new ConnectorTargetPoint() { X = 400, Y = 200 },
};
ConnectorCollection.Add(DiagramConnector1);
DiagramConnector DiagramConnector2 = new DiagramConnector()
{
SourcePoint = new ConnectorSourcePoint() { X = 300, Y = 100 },
TargetPoint = new ConnectorTargetPoint() { X = 300, Y = 300 },
};
ConnectorCollection.Add(DiagramConnector2);
}
}
Fields
Bottom
Sets the bridge’s direction to the bottom.
Declaration
public const BridgeDirection Bottom
Field Value
Type | Description |
---|---|
BridgeDirection |
Left
Sets the bridge’s direction to the left.
Declaration
public const BridgeDirection Left
Field Value
Type | Description |
---|---|
BridgeDirection |
Right
Sets the bridge’s direction to the right.
Declaration
public const BridgeDirection Right
Field Value
Type | Description |
---|---|
BridgeDirection |
Top
Sets the bridge’s direction to the top. It is the default value.
Declaration
public const BridgeDirection Top
Field Value
Type | Description |
---|---|
BridgeDirection |
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |