TX Text Control .NET Server

DefaultDistance Field

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

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.");