DiagramMappings.Node Property
Provides access to node mapping properties.
Namespace: DevExpress.Web.ASPxDiagram
Assembly: DevExpress.Web.ASPxDiagram.v20.2.dll
Declaration
public DiagramNodeMappingInfo Node { get; }
Public ReadOnly Property Node As DiagramNodeMappingInfo
Property Value
Type | Description |
---|---|
DiagramNodeMappingInfo | An object that contains mapping properties. |
Available values:
Name | Description |
---|---|
ContainerKey | Specifies the name of a data source field that provides the key of a shape's parent container shape. |
Height | Specifies the name of a data source field that provides a node's height. |
Width | Specifies the name of a data source field that provides a node's width. |
Top | Specifies the name of a data source field that provides the y-coordinate of a node's top border. |
Left | Specifies the name of a data source field that provides the x-coordinate of a node's left border. |
ImageUrl | Specifies the name of a data source field that provides the URL of a shape's image. |
ZIndex | Specifies the name of a data source field that provides a node's z-index. |
TextStyle | Specifies the name of a data source field that provides a node's text style. |
Style | Specifies the name of a data source field that provides a node style. |
Locked | Specifies the name of a data source field whose values indicate whether a node is locked. |
Type | Specifies the name of a data source field that provides the shape type for a node. |
Text | Specifies the name of a data source field that provides node texts. |
ParentKey | Specifies the name of a data source field that provides a parent node key for a node. |
Assign(PropertiesBase) | Copies public properties from the specified object to the current object. |
DiagramNodeMappingInfo(IPropertiesOwner) | Initializes a new DiagramNodeMappingInfo class instance with the specified owner. |
Remarks
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>