OmitFirstPage Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a value indicating whether the page border is not drawn on the first page of the section. If this property is set to true, the page border is not drawn on the first page but on all other pages, otherwise it is drawn on all pages of the section.
Syntax
public bool OmitFirstPage { get; set; }Public Property OmitFirstPage As BooleanExamples
The following example configures the page border of the first document section by using PageBorder.OmitFirstPage.
PageBorder pageBorder = textControl.Sections[1].Format.PageBorder;
pageBorder.OmitFirstPage = true;
if (pageBorder.OmitFirstPage)
{
Console.WriteLine("Page Border: Omit First Page is enabled.");
}Dim pageBorder As PageBorder = textControl.Sections(1).Format.PageBorder
pageBorder.OmitFirstPage = True
If pageBorder.OmitFirstPage Then
Console.WriteLine("Page Border: Omit First Page is enabled.")
End IfRemarks
The property's default value is false.
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.