Back to Devexpress

SectionPage.Height Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-sectionpage-b50710d2.md

latest2.2 KB
Original Source

SectionPage.Height Property

Gets or sets the page’s height.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
float Height { get; set; }
vb
Property Height As Single

Property Value

TypeDescription
Single

A Single value specifying the page’s height in current measure units.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Height property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

word-document-api-invoke-print-preview-dialog/VB/Form1.vb#L27

vb
richServer.Document.Sections(0).Page.Landscape = True
richServer.Document.Sections(0).Page.Height = DevExpress.Office.Utils.Units.InchesToDocumentsF(10.0F)
richServer.Document.Sections(0).Page.Width = DevExpress.Office.Utils.Units.InchesToDocumentsF(4.5F)

See Also

SectionPage Interface

SectionPage Members

DevExpress.XtraRichEdit.API.Native Namespace