Class PortVisuals
Contains static GraphicsPath objects that can be used for the visual representation of ports.
Inheritance
System.Object
PortVisuals
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class PortVisuals : Object
Constructors
PortVisuals()
Declaration
public PortVisuals()
Properties
CirclePort
Gets the circle with a crosshair in the middle style port.
Declaration
public static GraphicsPath CirclePort { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | The circle port. |
RhombPort
Gets the rhomb form port.
Declaration
public static GraphicsPath RhombPort { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | The rhomb port. |
SquarePort
Gets the square form port.
Declaration
public static GraphicsPath SquarePort { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | The square port. |
TrianglePort
Gets the triangle form port.
Declaration
public static GraphicsPath TrianglePort { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | The triangle port. |
XPort
Gets the X marks the spot style port.
Declaration
public static GraphicsPath XPort { get; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | The X port. |
Methods
GetGraphicsPath(PortVisualType, Single)
Gets the graphics path from specified port style.
Declaration
public static GraphicsPath GetGraphicsPath(PortVisualType type, float scale)
Parameters
| Type | Name | Description |
|---|---|---|
| PortVisualType | type | The port style. |
| System.Single | scale | The scale factor. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Drawing2D.GraphicsPath | The graphics path. |