Back to Devexpress

SectionMargins.Right Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-sectionmargins-894369b1.md

latest4.9 KB
Original Source

SectionMargins.Right Property

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

Declaration

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

Property Value

TypeDescription
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

csharp
_section.Margins.Left = 500f;
_section.Margins.Right = 500f;
_section.Margins.Top = 200f;

winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L364

csharp
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

csharp
_section.Margins.Left = 150f;
_section.Margins.Right = 150f;
_section.Margins.Top = 50f;

word-document-api-examples/CS/CodeUtils/SyntaxHighlight.cs#L54

csharp
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

vb
_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

vb
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

vb
_section.Margins.Left = 150F
_section.Margins.Right = 150F
_section.Margins.Top = 50.0F

word-document-api-examples/VB/CodeUtils/SyntaxHighlight.vb#L44

vb
document.Sections(0).Margins.Left = Units.InchesToDocumentsF(0.2F)
    document.Sections(0).Margins.Right = Units.InchesToDocumentsF(0.2F)
Finally

See Also

SectionMargins Interface

SectionMargins Members

DevExpress.XtraRichEdit.API.Native Namespace