All docs
V20.2
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DiagramEdgeMappingInfo.Points Property

Specifies the name of a data source field that provides an edge's key points.

Namespace: DevExpress.Web.ASPxDiagram

Assembly: DevExpress.Web.ASPxDiagram.v20.2.dll

Declaration

[DefaultValue("")]
public string Points { get; set; }
<DefaultValue("")>
Public Property Points As String

Property Value

Type Default Description
String

String.Empty

A string that contains coordinates of points. Coordinates are measured in Units.

Remarks

Predefined edge points are ignored if the SettingsAutoLayout.Type option is set to Layered or Tree.

If an edge is connected to nodes, the control calculates coordinates of connection points and the first and last points specified in a data source are ignored.

TIP

Use the Points property to change an edge's key points after it is bound to a data source (in the EdgeDataBound event).

<dx:ASPxDiagram ID="ASPxDiagram1" runat="server">
    <Mappings>
        <Node Key = "Key" ... />
        <Edge Key = "Key" Points = "Points" ... />
    </Mappings>
</dx:ASPxDiagram>
static List<Edge> CreateEdges() {
    var result = new List<Edge>();
    result.Add(new Edge() { Key = "121", Text = "Task", LineType = "Straight", Locked = false, 
        FromKey = "101", FromLineEnd = "None", FromPointIndex = 1, ToKey = "102", 
        ToLineEnd = "FilledTriangle", ToPointIndex = 11, Points = "1.5,1.125 1.75,0.875 2.5,0.875", Style = "stroke-dasharray: 4", 
        TextStyle = "font-weight: bold", ZIndex = 0 });
    return result;
}

Diagram

See Also