Skip to main content

DiagramDefaultItemProperties.Style Property

Specifies a default item style.

Namespace: DevExpress.Web.ASPxDiagram

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

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("")]
public string Style { get; set; }

Property Value

Type Default Description
String String.Empty

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