Skip to main content
A newer version of this page is available. .

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; }

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