DiagramPageSettings.Orientation Property
Specifies the page orientation.
Namespace: DevExpress.Web.ASPxDiagram
Assembly: DevExpress.Web.ASPxDiagram.v25.1.dll
NuGet Package: DevExpress.Web
Declaration
[DefaultValue(DiagramPageOrientation.Portrait)]
public DiagramPageOrientation Orientation { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| DiagramPageOrientation | Portrait | The page orientation |
Available values:
| Name | Description |
|---|---|
| Portrait | A portrait orientation. |
| Landscape | A landscape orientation. |
Property Paths
You can access this nested property as listed below:
| Library | Object Type | Path to Orientation |
|---|---|---|
| ASP.NET MVC Extensions | DiagramSettings |
|
| ASP.NET Web Forms Controls | ASPxDiagram |
|
Remarks
<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 Orientation property is ignored.
- If a diagram is read-only (the ReadOnly property is set to
true), it is not possible to use the Orientation property to define the page orientation.
See Also