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.

DiagramEdgeEventArgs.Edge Property

Gets an edge object related to the event.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

public DiagramEdge Edge { get; protected set; }
Public Property Edge As DiagramEdge

Property Value

Type Description
DiagramEdge

An object that is the processed edge.

Available values:

Show 13 items
Name Description
ToLineEnd

Specifies the edge's line end tip.

FromLineEnd

Specifies the edge's line start tip.

LineType

Specifies the edge's line type.

Text

Specifies the text of the edge.

ToPointIndex

Specifies an index of a shape connection point where the edge ends.

ToKey

Specifies the edge's end node key.

FromPointIndex

Specifies an index of a shape connection point where the edge starts.

FromKey

Specifies the edge's start node key.

ZIndex

Specifies the edge's z-index.

TextStyle

Specifies the edge's text style.

Style

Specifies the edge style.

Locked

Specifies whether the edge is locked.

Points

Specifies the edge's key points.

Remarks

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px"
    NodeDataSourceID="FlowNodeDemoDataSource" EdgeDataSourceID="FlowEdgeDemoDataSource"
    OnEdgeDataBound="Diagram_EdgeDataBound">
    <Mappings>
        <Node Key="ID" Type="Type" Width="Width" Height="Height" />
        <Edge Key="ID" FromKey="FromID" ToKey="ToID" Text="Text" />
    </Mappings>
</dx:ASPxDiagram>
protected void Diagram_EdgeDataBound(object sender, DevExpress.Web.ASPxDiagram.DiagramEdgeEventArgs e) {
    if (e.Edge.Text == "No") {
        e.Edge.Style = "stroke: red";
        e.Edge.TextStyle = "fill: red";

    }
    if (e.Edge.Text == "Yes") {
        e.Edge.Style = "stroke: green";
        e.Edge.TextStyle = "fill: green";

    }
}
See Also