Skip to main content

DiagramDefaultItemProperties.ConnectorLineType Property

Specifies the default type of a connector.

Namespace: DevExpress.Web.ASPxDiagram

Assembly: DevExpress.Web.ASPxDiagram.v22.1.dll

Declaration

[DefaultValue(ConnectorLineType.Orthogonal)]
public ConnectorLineType ConnectorLineType { get; set; }

Property Value

Type Default Description
ConnectorLineType

Orthogonal

The line type.

Available values:

Name Description
Straight

A connector links shapes by a straight line.
Straight connector

Orthogonal

A connector links shapes by a right-angle polyline.
Orthogonal connector

Remarks

The ConnectorLineType property specifies a type of a connector if the LineType property does not provide another value.

<dx:ASPxDiagram ID="Diagram" runat="server" 
    NodeDataSourceID="DepartmentDemoDataSource" OnNodeInserted="Diagram_NodeInserted">
    <Mappings>
        <Node Key="ID" Text="DepartmentName" ParentKey="ParentID" />
    </Mappings>
    <DefaultItemProperties 
        ConnectorLineEnd="None" 
        ConnectorLineStart="FilledTriangle" 
        ConnectorLineType="Straight" 
        Style="fill: #C0C0C0; stroke-width: 3" 
        TextStyle="fill: #ff0000;" />
</dx:ASPxDiagram>
See Also