Skip to main content

DiagramDefaultItemProperties.TextStyle Property

Specifies a default item text style.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

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

Property Value

Type Default Description
String String.Empty

The style settings.

Remarks

The TextStyle property specifies the style applied to a shape/connector text if the Mappings.Node.TextStyle/Mappings.Edge.TextStyle 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