An instance of the Header
The Text
public class HeaderFooter : IFormattedText
Public Class HeaderFooter
Implements IFormattedText
The following examples shows how to insert a header to the first section.
textControl1.ViewMode = TXTextControl.ViewMode.PageView;
textControl1.Sections[1].HeadersAndFooters.Add(TXTextControl.HeaderFooterType.Header);
TXTextControl.HeaderFooter header = textControl1.Sections[1].HeadersAndFooters.GetItem( TXTextControl.HeaderFooterType.Header);
header.Selection.Text = "TX Text Control";
header.Selection.Start = 3;
header.Selection.Length = 4;
header.Selection.Bold = true;
TextControl1.ViewMode = TXTextControl.ViewMode.PageView
TextControl1.Sections(1).HeadersAndFooters.Add(TXTextControl.HeaderFooterType.Header)
Dim header As TXTextControl.HeaderFooter = TextControl1.Sections(1).HeadersAndFooters.GetItem( _ TXTextControl.HeaderFooterType.Header)
header.Selection.Text = "TX Text Control"
header.Selection.Start = 3
header.Selection.Length = 4
header.Selection.Bold = True
Method | Description |
---|---|
Activate | Activates a header or a footer. |
Add |
Adds the current state of the header or footer to the undo stack. |
Deactivate | Deactivates a header or a footer. |
Find | Finds a text string in a header or footer. |
Get |
Returns a collection containing text fields of the specified types. |
Property | Description |
---|---|
Application |
Gets a collection of all Microsoft Word or Heiler High |
Barcodes | Gets a collection of all barcodes contained in a header or footer. |
Charts | Gets a collection of all charts contained in a header or footer. |
Comments | Gets a collection of all comments in the header or footer. |
Connected |
Gets or sets a value specifying whether the header or footer is connected with the header or footer of the previous section. |
Distance | Gets or sets the distance, in twips, of a header or footer to the top or bottom of the page. |
Document |
Gets a collection of all links in a header or footer which point to targets in the same document. |
Document |
Gets a collection of all targets in a header or footer. |
Drawings | Gets a collection of all drawings contained in a header or footer. |
Editable |
Gets a collection of all editable regions in the header or footer. |
Form |
Gets a collection of all form fields contained in a header or footer. |
Frames | Gets a collection of all images, textframes, charts, barcodes and drawings in a header or footer. |
Hypertext |
Gets a collection of all hypertext links the header or footer contains. |
Images | Gets a collection of all images the header or footer contains. |
Lines | Gets a collection of all text lines the header or footer contains. |
Misspelled |
Gets a collection of all misspelled words the header or footer contains. |
Page |
Gets a collection of page number fields in the header or footer. |
Paragraphs | Gets a collection of all paragraphs the header or footer contains. |
Section |
Returns the number of the section to which the header or footer belongs. |
Selection | Gets or sets the current selection in a header or footer. |
Sub |
Gets a collection of all subtextparts in the header or footer. |
Tables | Gets a collection of all tables in the header or footer. |
Tables |
Gets a collection of all tables of contents in the header or footer. |
Text |
Gets a collection of all characters the header or footer contains. |
Text |
Gets a collection of all standard text fields in the header or footer. |
Text |
Gets a collection of all text frames contained in a header or footer. |
Tracked |
Gets a collection of all changes made in the header or footer. |
Type | Gets the type of the header or footer. |
Learn more about the TXText