Right Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies the right margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
Syntax
public double Right { get; set; }Public Property Right As DoubleExamples
The following example configures page margins for the current document by using PageMargins.Right.
PageMargins pageMargins = textControl.PageMargins;
pageMargins.Right = 1.0;
Console.WriteLine($"Right used by Page Margins: {pageMargins.Right}");
pageMargins.Left = 1440;
pageMargins.Right = 1440;Dim pageMargins As PageMargins = textControl.PageMargins
pageMargins.Right = 1.0
Console.WriteLine($"Right used by Page Margins: {pageMargins.Right}")
pageMargins.Left = 1440
pageMargins.Right = 1440Remarks
The margin's default value is 1 inch.
The property returns its default value when the text selection contains multiple sections with mixed margins. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.