TX Text Control .NET for WPF

DefaultDistance Field

Field|Introduced in 17.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Represents the default distance of a page border from the edge of the page. The value of this constant is 454 twips = 8 mm.

Syntax

public const int DefaultDistance = 454;

Examples

The following example configures the page border of the first document section by using PageBorder.DefaultDistance.

PageBorder pageBorder = textControl.Sections[1].Format.PageBorder;

Console.WriteLine($"Default Distance: {PageBorder.DefaultDistance}");
Console.WriteLine("Page Border is ready for use.");