Skip to main content
A newer version of this page is available. .

ASPxDiagram.Units Property

Specifies the measurement unit for size properties (for instance, Height, Width).

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

[DefaultValue(DiagramUnit.In)]
public DiagramUnit Units { get; set; }

Property Value

Type Default Description
DiagramUnit **In**

The unit.

Available values:

Name Description
In

Inch

Cm

Centimeter

Px

Pixel

Remarks

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px" Units="Px"
    NodesDataSourceID="FlowNodesDemoDataSource" EdgesDataSourceID="FlowEdgesDemoDataSource" >
    <Mappings>
        <Node Key="ID" Type="Type" Width="Width" Height="Height" />
        <Edge Key="ID" FromKey="FromID" ToKey="ToID" Text="Text" />
    </Mappings>
</dx:ASPxDiagram>

Online Demo

Diagram - Node and Edge Data Sources

See Also