officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-sectionmargins-894369b1.md
Gets or sets a value that specifies the right margin.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
float Right { get; set; }
Property Right As Single
| Type | Description |
|---|---|
| Single |
A Single value that specifies the right margin in current measure units.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Right 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-print-documents/CS/Program.cs#L31
_section.Margins.Left = 500f;
_section.Margins.Right = 500f;
_section.Margins.Top = 200f;
winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L364
Section firstSection = richEdit.Document.Sections[0];
int pageWidth = Convert.ToInt32(firstSection.Page.Width - firstSection.Margins.Left - firstSection.Margins.Right);
e.Graphics.DrawLine(System.Drawing.Pens.Red,
word-document-api-use-printablecomponentlink-to-print-document/CS/PrintingSystem/Form1.cs#L44
_section.Margins.Left = 150f;
_section.Margins.Right = 150f;
_section.Margins.Top = 50f;
word-document-api-examples/CS/CodeUtils/SyntaxHighlight.cs#L54
document.Sections[0].Margins.Left = Units.InchesToDocumentsF(0.2f);
document.Sections[0].Margins.Right = Units.InchesToDocumentsF(0.2f);
}
word-document-api-print-documents/VB/Program.vb#L19
_section.Margins.Left = 500.0F
_section.Margins.Right = 500.0F
_section.Margins.Top = 200.0F
winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L372
Dim firstSection As Section = richEdit.Document.Sections(0)
Dim pageWidth As Integer = Convert.ToInt32(firstSection.Page.Width - firstSection.Margins.Left - firstSection.Margins.Right)
e.Graphics.DrawLine(System.Drawing.Pens.Red,
word-document-api-use-printablecomponentlink-to-print-document/VB/PrintingSystem/Form1.vb#L44
_section.Margins.Left = 150F
_section.Margins.Right = 150F
_section.Margins.Top = 50.0F
word-document-api-examples/VB/CodeUtils/SyntaxHighlight.vb#L44
document.Sections(0).Margins.Left = Units.InchesToDocumentsF(0.2F)
document.Sections(0).Margins.Right = Units.InchesToDocumentsF(0.2F)
Finally
See Also