Class PortVisibility
Represents the visibility options of the port.
Inheritance
System.Object
PortVisibility
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class PortVisibility : Enum
Examples
Node Node = new Node()
{
ID = "node1",
Height = 100,
Width = 100,
OffsetX = 100,
OffsetY = 100,
};
Node.Ports = new DiagramObjectCollection<PointPort>()
{
new PointPort()
{
Visibility=PortVisibility.Hover|PortVisibility.Connect,
}
};
Fields
Connect
Shows the port when a connector endpoint is dragged over a node.
Declaration
public const PortVisibility Connect
Field Value
Type |
---|
PortVisibility |
Hidden
Always hides the port.
Declaration
public const PortVisibility Hidden
Field Value
Type |
---|
PortVisibility |
Hover
Shows the port when the mouse hovers over a node.
Declaration
public const PortVisibility Hover
Field Value
Type |
---|
PortVisibility |
Visible
Always shows the port.
Declaration
public const PortVisibility Visible
Field Value
Type |
---|
PortVisibility |