Class DecoratorShapes
Specifies the connector decorator shape of the connector.
Inheritance
System.Object
DecoratorShapes
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class DecoratorShapes : Enum
Remarks
To know more about using decorator shapes, refer to these links |
1. DiagramMethods |
2. ContextMenu |
3. DataBinding |
4. OverviewControl |
5. SymbolPalette |
6. Connectors |
7. Layout |
To apply connector decorator shapes, use the below code. |
Examples
<SfDiagram Height="600px" Connectors="@ConnectorCollection">
</SfDiagram>
@code
{
//Defines diagram's connector collection
public ObservableCollection<DiagramConnector> ConnectorCollection = new ObservableCollection<DiagramConnector>();
protected override void OnInitialized()
{
DiagramConnector DiagramConnector = new DiagramConnector()
{
SourcePoint = new ConnectorSourcePoint() { X = 100, Y = 100 },
TargetPoint = new ConnectorTargetPoint() { X = 200, Y = 100 },
SourceDecorator = new ConnectorSourceDecorator()
{
Shape = DecoratorShapes.Circle,
Style = new DecoratorShapeStyle() { StrokeColor = "Black", Fill = "Red", StrokeWidth = 1 },
},
TargetDecorator = new ConnectorTargetDecorator()
{
Shape = DecoratorShapes.Diamond,
Style = new DecoratorShapeStyle() { StrokeColor = "Black", Fill = "Red", StrokeWidth = 1 },
},
Style = new ConnectorShapeStyle() { StrokeColor = "#37909A", StrokeWidth = 1 },
Type = Segments.Orthogonal,
};
ConnectorCollection.Add(DiagramConnector);
}
}
Fields
Arrow
Sets the decorator shape as Arrow
Declaration
public const DecoratorShapes Arrow
Field Value
Type | Description |
---|---|
DecoratorShapes |
Circle
Sets the decorator shape as Circle
Declaration
public const DecoratorShapes Circle
Field Value
Type | Description |
---|---|
DecoratorShapes |
Custom
Sets the decorator shape as Custom
Declaration
public const DecoratorShapes Custom
Field Value
Type | Description |
---|---|
DecoratorShapes |
Diamond
Sets the decorator shape as Diamond
Declaration
public const DecoratorShapes Diamond
Field Value
Type | Description |
---|---|
DecoratorShapes |
DoubleArrow
Sets the decorator shape as DoubleArrow
Declaration
public const DecoratorShapes DoubleArrow
Field Value
Type | Description |
---|---|
DecoratorShapes |
Fletch
Sets the decorator shape as Fletch
Declaration
public const DecoratorShapes Fletch
Field Value
Type | Description |
---|---|
DecoratorShapes |
IndentedArrow
Sets the decorator shape as Indented Arrow
Declaration
public const DecoratorShapes IndentedArrow
Field Value
Type | Description |
---|---|
DecoratorShapes |
None
Sets the decorator shape as None
Declaration
public const DecoratorShapes None
Field Value
Type | Description |
---|---|
DecoratorShapes |
OpenArrow
Sets the decorator shape as OpenArrow
Declaration
public const DecoratorShapes OpenArrow
Field Value
Type | Description |
---|---|
DecoratorShapes |
OpenFetch
Sets the decorator shape as OpenFetch
Declaration
public const DecoratorShapes OpenFetch
Field Value
Type | Description |
---|---|
DecoratorShapes |
OutdentedArrow
Sets the decorator shape as Outdented Arrow
Declaration
public const DecoratorShapes OutdentedArrow
Field Value
Type | Description |
---|---|
DecoratorShapes |
Square
Sets the decorator shape as Square
Declaration
public const DecoratorShapes Square
Field Value
Type | Description |
---|---|
DecoratorShapes |
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |