SurroundFooter 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 surrounds the section's footer. If this property is set to true, the page border surrounds the footer, otherwise it surrounds only the text. This property only has a meaning, if the MeasureFromText property has been set to true.
Syntax
public bool SurroundFooter { get; set; }Public Property SurroundFooter As BooleanExamples
The following example configures the page border of the first document section by using PageBorder.SurroundFooter.
PageBorder pageBorder = textControl.Sections[1].Format.PageBorder;
pageBorder.SurroundFooter = true;
if (pageBorder.SurroundFooter)
{
Console.WriteLine("Page Border: Surround Footer is enabled.");
}Dim pageBorder As PageBorder = textControl.Sections(1).Format.PageBorder
pageBorder.SurroundFooter = True
If pageBorder.SurroundFooter Then
Console.WriteLine("Page Border: Surround Footer 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.