Enum VerticalAlignment
Represents the alignment of the diagram elements based on its immediate parent.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public enum VerticalAlignment
Examples
<SfDiagramComponent Height="600px" Nodes="@nodes">
</SfDiagramComponent>
@code
{
public DiagramObjectCollection<Node> nodes = new DiagramObjectCollection<Node>() { };
protected override void OnInitialized()
{
// A node is created and stored in nodes array.
Node Node = new Node()
{
/// Initialize the port collection
Ports = new DiagramObjectCollection<PointPort>()
{
new PointPort()
{
VerticalAlignment = VerticalAlignment.Top
}
},
};
nodes.Add(Node);
}
}
Fields
| Name | Description |
|---|---|
| Auto | Aligns the diagram element based on its immediate parent’s vertical alignment property. |
| Bottom | Align the diagram element vertically to the bottom side of its immediate parent. |
| Center | Align the diagram element vertically to the center of its immediate parent. |
| Stretch | Stretch the diagram element vertically to its immediate parent. |
| Top | Align the diagram element vertically to the top side of its immediate parent. |