DiagramDefaultItemProperties.Style Property
In This Article
Specifies a default item style.
Namespace: DevExpress.Web.ASPxDiagram
Assembly: DevExpress.Web.ASPxDiagram.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
The style settings. |
#Remarks
The Style property specifies the style applied to a shape/connector if the Mappings.Node.Style/Mappings.Edge.Style property does not provide another value.
The style settings should be specified as an inline style declaration.
<dx:ASPxDiagram ID="Diagram" runat="server"
NodeDataSourceID="DepartmentDemoDataSource" OnNodeInserted="Diagram_NodeInserted">
<Mappings>
<Node Key="ID" Text="DepartmentName" ParentKey="ParentID" />
</Mappings>
<DefaultItemProperties
ConnectorLineEnd="None"
ConnectorLineStart="FilledTriangle"
ConnectorLineType="Straight"
Style="fill: #C0C0C0; stroke-width: 3"
TextStyle="fill: #ff0000;" />
</dx:ASPxDiagram>
See Also