Back to Devexpress

SectionPage.Width Property

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

latest6.4 KB
Original Source

SectionPage.Width Property

Gets or sets the page’s width.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDescription
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

csharp
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

csharp
document.DefaultCharacterProperties.FontSize = 10;
document.Sections[0].Page.Width = Units.InchesToDocumentsF(100);
document.Sections[0].LineNumbering.CountBy = 1;

wpf-spreadsheet-pivot-table-api-examples/CS/SpreadsheetWPFPivotTableExamples/CodeUtils/SyntaxHightlight.cs#L51

csharp
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

csharp
document.DefaultCharacterProperties.FontSize = 10;
document.Sections[0].Page.Width = Units.InchesToDocumentsF(100);
document.Sections[0].LineNumbering.CountBy = 1;

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/CodeUtils/SyntaxHightlight.cs#L51

csharp
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

vb
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

vb
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

vb
document.DefaultCharacterProperties.FontSize = 10
document.Sections(0).Page.Width = Units.InchesToDocumentsF(100)
document.Sections(0).LineNumbering.CountBy = 1

wpf-spreadsheet-pivot-table-api-examples/VB/SpreadsheetWPFPivotTableExamples/CodeUtils/SyntaxHightlight.vb#L48

vb
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

vb
document.DefaultCharacterProperties.FontSize = 10
document.Sections(0).Page.Width = Units.InchesToDocumentsF(100)
document.Sections(0).LineNumbering.CountBy = 1

See Also

SectionPage Interface

SectionPage Members

DevExpress.XtraRichEdit.API.Native Namespace