DiagramEdgeMappingInfo.Style Property
Specifies the name of a data source field that provides an edge style.
Namespace: DevExpress.Web.ASPxDiagram
Assembly: DevExpress.Web.ASPxDiagram.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | The field name. |
Remarks
A data source field specified by this property must contain inline style declarations in string format, for instance "fill: #d9d9d9; stroke: #999999"
.
Tip
Use the Style property to customize the style of an edge after it is bound to a data source (in the EdgeDataBound event).
Online Demo
Example
<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px" Units="Px"
NodeDataSourceID="FlowNodeDemoDataSource" EdgeDataSourceID="FlowEdgeDemoDataSource" >
<SettingsAutoLayout Type="Layered" Orientation="Vertical" />
<Mappings>
<Node Key="ID" Type="Type" Width="Width" Height="Height" Left="Left" Locked="Locked" Style="Style"
Text="Text" TextStyle="TextStyle" Top="Top" ZIndex="ZIndex"/>
<Edge Key="ID" FromKey="FromID" ToKey="ToID" Text="Text" FromLineEnd="StartTip" FromPointIndex="StartPoint"
LineType="Type" Locked="Locked" Style="Style" TextStyle="TextStyle" ToLineEnd="EndTip"
ToPointIndex= "EndPoint" ZIndex="ZIndex"/>
</Mappings>
</dx:ASPxDiagram>
See Also