TX Text Control ActiveX

Sections and Pages

Topic

Page size, margins, columns and page borders apply to a whole TXTextControl document or to one of its sections. The members below read and set these settings, insert section breaks, select sections and pages and report when the page format changes or the input position moves to another page or section.

Properties

MemberDescription
TXTextControl.ColumnDistanceSets the distance, in twips, between the columns on a page for the whole document or for a document's section.
TXTextControl.ColumnLineColorReturns or sets the color of a dividing line between two page columns, either for the whole document or for a certain section.
TXTextControl.ColumnLineWidthReturns or sets the width, in twips, of a dividing line between two page columns, either for the whole document or for a certain section.
TXTextControl.ColumnsReturns or sets the number of columns on a page for the whole document or for a document's section.
TXTextControl.ColumnWidthsAndDistancesReturns or sets the number of columns on a page including its widths and distances for the whole document or for a document's section.
TXTextControl.PageBorderAttributeThis property returns or sets page border attributes for the whole document or for a document's section.
TXTextControl.PageCountReturns the number of pages, the document contains.
TXTextControl.PageHeightReturns or sets the height of the page for the whole document or for a document's section.
TXTextControl.PageImageReturns an image of the specified page which can be used with the Picture property of a Form object, PictureBox control or Image control.
TXTextControl.PageLengthGets the number of characters of the page, including the page break character at the end of the page.
TXTextControl.PageMarginBReturns or sets the bottom page margin for the whole document or for a document's section.
TXTextControl.PageMarginLReturns or sets the left page margin for the whole document or for a document's section.
TXTextControl.PageMarginRReturns or sets the right page margin for the whole document or for a document's section.
TXTextControl.PageMarginTReturns or sets the top page margin for the whole document or for a document's section.
TXTextControl.PageOrientationReturns or sets the page orientation, portrait or landscape.
TXTextControl.PageStartGets the number (one-based) of the page's first character.
TXTextControl.PageViewStyleDefines the kind of view to display the page background.
TXTextControl.PageWidthReturns or sets the width of the page for the whole document or for a document's section.
TXTextControl.SectionAtInputPosReturns the number of the section containing the current text input position.
TXTextControl.SectionBreakKindReturns or sets the kind of the section break the section starts with.
TXTextControl.SectionCountReturns the number of sections, the document contains.
TXTextControl.SectionCurrentReturns or sets the section number for the following properties and methods: PageWidth, PageHeight, PageMarginL, PageMarginT, PageMarginR, PageMarginB, PageOrientation, HeaderFooter, HeaderFooterActivate, HeaderFooterSelect, HeaderFooterPosition, HeaderFooterConnectedToPrevious, Columns, PageBorderAttribute, ColumnDistance, ColumnLineWidth, ColumnLineColor, ColumnWidthsAndDistances, SectionRestartPageNumbering, and SectionBreakKind.
TXTextControl.SectionLengthGets the number of characters in the section.
TXTextControl.SectionRestartPageNumberingReturns or sets a value specifying whether page numbering is restarted at the beginning of a document section.
TXTextControl.SectionStartGets the number (one-based) of the section's first character.

Methods

MemberDescription
TXTextControl.PageSelectThis method can be used to select the specified page.
TXTextControl.SectionFormatDialogThis method invokes the built-in dialog box to set page settings and to design the headers and footers either for the whole document or for a single section.
TXTextControl.SectionInsertInserts a section break at the text input position or at a specified position.
TXTextControl.SectionSelectThis method can be used to select the specified section.

Events

MemberDescription
TXTextControl.PageChangedOccurs when the text input position has been moved to another page.
TXTextControl.PageFormatChangeOccurs when the page format settings have been changed.
TXTextControl.SectionChangedOccurs when the text input position has been moved to another section.