RightDistance Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the distance, in twips, of the right border line either from the edge of the page or from the text, depending on the MeasureFromText property.
Syntax
public int RightDistance { get; set; }Public Property RightDistance As IntegerExamples
The following example configures the page border of the first document section by using PageBorder.RightDistance.
PageBorder pageBorder = textControl.Sections[1].Format.PageBorder;
pageBorder.RightDistance = 720;
Console.WriteLine($"Right Distance used by Page Border: {pageBorder.RightDistance}");Dim pageBorder As PageBorder = textControl.Sections(1).Format.PageBorder
pageBorder.RightDistance = 720
Console.WriteLine($"Right Distance used by Page Border: {pageBorder.RightDistance}")Remarks
The property's default value is PageBorder.DefaultDistance.
The property returns its default value when the text selection contains multiple sections with mixed setting. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.