officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-sectionpage.md
Gets or sets the page’s width.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
float Width { get; set; }
Property Width As Single
| Type | Description |
|---|---|
| Single |
A Single value that specifies the page’s width in current measure units.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Width 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.
winforms-richedit-implement-t-sql-language-syntax-highlighting/CS/Form1.cs#L17
richEditControl1.ActiveViewType = DevExpress.XtraRichEdit.RichEditViewType.Draft;
richEditControl1.Document.Sections[0].Page.Width = Units.InchesToDocumentsF(80f);
richEditControl1.Document.DefaultCharacterProperties.FontName = "Courier New";
wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeUtils/SyntaxHightlight.cs#L47
document.DefaultCharacterProperties.FontSize = 10;
document.Sections[0].Page.Width = Units.InchesToDocumentsF(100);
document.Sections[0].LineNumbering.CountBy = 1;
document.DefaultCharacterProperties.FontSize = 10;
document.Sections[0].Page.Width = Units.InchesToDocumentsF(100);
document.Sections[0].LineNumbering.CountBy = 1;
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeUtils/SyntaxHightlight.cs#L47
document.DefaultCharacterProperties.FontSize = 10;
document.Sections[0].Page.Width = Units.InchesToDocumentsF(100);
document.Sections[0].LineNumbering.CountBy = 1;
document.DefaultCharacterProperties.FontSize = 10;
document.Sections[0].Page.Width = Units.InchesToDocumentsF(100);
document.Sections[0].LineNumbering.CountBy = 1;
word-document-api-invoke-print-preview-dialog/VB/Form1.vb#L28
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)
' Add document content
winforms-richedit-implement-t-sql-language-syntax-highlighting/VB/Form1.vb#L16
richEditControl1.ActiveViewType = DevExpress.XtraRichEdit.RichEditViewType.Draft
richEditControl1.Document.Sections(0).Page.Width = Units.InchesToDocumentsF(80F)
richEditControl1.Document.DefaultCharacterProperties.FontName = "Courier New"
wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeUtils/SyntaxHightlight.vb#L48
document.DefaultCharacterProperties.FontSize = 10
document.Sections(0).Page.Width = Units.InchesToDocumentsF(100)
document.Sections(0).LineNumbering.CountBy = 1
document.DefaultCharacterProperties.FontSize = 10
document.Sections(0).Page.Width = Units.InchesToDocumentsF(100)
document.Sections(0).LineNumbering.CountBy = 1
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeUtils/SyntaxHightlight.vb#L49
document.DefaultCharacterProperties.FontSize = 10
document.Sections(0).Page.Width = Units.InchesToDocumentsF(100)
document.Sections(0).LineNumbering.CountBy = 1
See Also