PageMargins Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.dll
Description
An instance of the PageMargins class represents the page margins 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 class PageMarginsPublic Class PageMarginsExamples
The following example shows how to set the page margins for the current section.
TXTextControl.Section section = textControl1.Sections.GetItem();
TXTextControl.PageMargins margins =
new TXTextControl.PageMargins(200, 100, 200, 100);
section.Format.PageMargins = margins;Dim section As TXTextControl.Section = TextControl1.Sections.GetItem()
Dim margins As TXTextControl.PageMargins = _
New TXTextControl.PageMargins(200, 100, 200, 100)
section.Format.PageMargins = marginsThe following example configures page margins for the current document.
PageMargins pageMargins = textControl.PageMargins;
pageMargins.Left = 1440;
pageMargins.Right = 1440;Dim pageMargins As PageMargins = textControl.PageMargins
pageMargins.Left = 1440
pageMargins.Right = 1440Members
Constructors
| Constructor | Description |
|---|---|
| PageMargins | Creates a new instance of the PageMargins class. |
Properties
| Property | Description |
|---|---|
| Bottom | Specifies the bottom margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property. |
| Left | Specifies the left margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property. |
| Right | 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. |
| Top | Specifies the top margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property. |
Enumerations
| Enumeration | Description |
|---|---|
| Attribute | Determines a certain attribute. This enumeration is used with the Selection.IsCommonValueSelected method. |