All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DiagramPageSettings.Width Property

Specifies the page width.

Namespace: DevExpress.Web.ASPxDiagram

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

Declaration

[DefaultValue(typeof(decimal), "0")]
public decimal Width { get; set; }
<DefaultValue(GetType(Decimal), "0")>
Public Property Width As Decimal

Property Value

Type Default Description
Decimal

"0"

The page width.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Width
ASP.NET MVC Extensions DiagramSettings
.SettingsPage.Width
MVCxDiagram
.SettingsPage.Width
ASP.NET Web Forms Controls ASPxDiagram
.SettingsPage.Width

Remarks

Use the Width and Height properties to set the page size.

The Units property specifies the measurement unit.

<dx:ASPxDiagram ID="Diagram" runat="server" Units="Cm" >
    <SettingsPage Width="21" Height="29.7" Color="#ccffcc" Orientation="Landscape" />
</dx:ASPxDiagram>

Since page settings are stored in a diagram model, the ASPxDiagram behaves as follows.

  • If you call the server Import(String) or client Import(data) method, the method applies the imported page settings and the Width property is ignored.
  • If a diagram is read-only (the ReadOnly property is set to true), it is not possible to use the Width property to define the page width.
See Also