TX Text Control .NET for Windows Forms Documentation

PageBorder class

An instance of the PageBorder class represents the attributes of a border, which is drawn in the margin area of a page. A page border can have a top, left, right or bottom line or a combination of these lines. The line width and the color can be defined for each line separately. For each line a distance can be specified, which is either a distance to the edge of the page or to the text. The page border can surround the text including page headers and footers or only the text of the page. The border can be defined for the first page, for all pages or beginning with the second page.

Introduced: 17.0.

Syntax

[C#] public class PageBorder
[Visual Basic] Public Class PageBorder

Constructors

ConstructorDescription
PageBorderInitializes a new instance of the PageBorder class.

Properties

PropertyDescription
BottomDistanceGets or sets the distance, in twips, of the bottom border line either from the edge of the page or from the text, depending on the MeasureFromText property.
BottomLineColorGets or sets the color of the bottom border line.
BottomLineWidthGets or sets the width of the bottom border line.
FirstPageOnlyGets or sets a value indicating whether the page border is drawn only on the first page of the section.
LeftDistanceGets or sets the distance, in twips, of the left border line either from the edge of the page or from the text, depending on the MeasureFromText property.
LeftLineColorGets or sets the color of the left border line.
LeftLineWidthGets or sets the width of the left border line.
MeasureFromTextGets or sets a value indicating whether the page border's distances are measured from the text.
OmitFirstPageGets or sets a value indicating whether the page border is not drawn on the first page of the section.
RightDistanceGets or sets the distance, in twips, of the right border line either from the edge of the page or from the text, depending on the MeasureFromText property.
RightLineColorGets or sets the color of the right border line.
RightLineWidthGets or sets the width of the right border line.
SurroundFooterGets or sets a value indicating whether the page border surrounds the section's footer.
SurroundHeaderGets or sets a value indicating whether the page border surrounds the section's header.
TopDistanceGets or sets the distance, in twips, of the top border line either from the edge of the page or from the text, depending on the MeasureFromText property.
TopLineColorGets or sets the color of the top border line.
TopLineWidthGets or sets the width of the top border line.

Enumerations

EnumerationDescription
AttributeDetermines a certain page border attribute.

Fields

FieldDescription
DefaultDistanceRepresents the default distance of a page border from the edge of the page.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now