TXTextControl Control

The TXTextControl control is the main control that is used to display and edit a text document. The large amout of this control's properties, methods and events are listed in alphabetical order here and are sorted by category in the Programming Categories chapter.

Syntax

TXTextControl

Properties

Property Description
Alignment Specifies the alignment of text in a Text Control.
AllowDrag Gets or sets a value indicating whether the control can be a source of a Drag&Drop operation.
AllowDrop Gets or sets a value indicating whether the control can accept data that the user drags onto it.
AllowUndo Determines whether the undo buffer is active or not.
AutoBaseLine Returns or sets values specifying wheather the selected text is automatically sub- or superscripted.
AutoExpand Specifies whether the control size should expand automatically when the text insertion or format changes results in text that does not fit into the Text Control anymore.
BackColor Returns or sets the background color of a Text Control.
BackStyle Returns or sets a value indicating whether the background of a Text Control is transparent or opaque.
BaseLine Specifies the baseline alignment for selected text.
BorderStyle Returns or sets the border style for a Text Control.
BulletAttribute This property returns or sets attributes for bulleted lists.
ButtonBarHandle Specifies the button bar control to be used with a Text Control.
CanCharacterFormat Informs whether character formatting attributes can be changed for the currently selected text.
CanCopy Informs whether a part of a Text Control's document has been selected and can be copied to the clipboard.
CanDocumentFormat Informs whether page and section formatting attributes can be changed.
CanEdit Informs whether the document's text can be changed at the current text input position.
CanParagraphFormat Informs whether paragraph formatting attributes can be changed for the currently selected text.
CanPaste Informs whether the clipboard contains a format that can be pasted into a Text Control's document.
CanPrint Informs whether the document can be printed.
CanRedo Informs whether an operation can be re-done using the Redo method.
CanStyleFormat Informs whether the document can be formatted with formatting styles.
CanTableFormat Informs whether table formatting attributes and/or the table layout can be changed for the currently selected text.
CanUndo Informs whether an operation can be undone using the Undo method.
Capitals Returns or sets values specifying wheather lowercase letters are displayed with capital letters.
CaretWidth This property returns or sets the width of the caret in pixels.
CharacterScaling Returns or sets a character scaling, in percent of the average character width, of the selected text.
CharacterSpacing Returns or sets a character spacing value, in twips, of the selected text.
ClipboardFormats Returns an array of Integer values specifying all the data formats which are currently available in the clipboard and which can be pasted into a TextControl document.
ClipChildren This property is only used for Text Controls which act as a container for other Text Controls or embedded objects.
ClipSiblings This property determines the clipping behaviour of each of the child controls which belong to a common container control.
ColumnDistance Sets the distance, in twips, between the columns on a page for the whole document or for a document's section.
ColumnLineColor Returns or sets the color of a dividing line between two page columns, either for the whole document or for a certain section.
ColumnLineWidth Returns or sets the width, in twips, of a dividing line between two page columns, either for the whole document or for a certain section.
Columns Returns or sets the number of columns on a page for the whole document or for a document's section.
ColumnWidthsAndDistances Returns or sets the number of columns on a page including its widths and distances for the whole document or for a document's section.
CommentCreationTime Returns the date and time when the specified comment has been made.
CommentEnd Returns the index (one-based) of the last character of the text associated with the specified comment.
CommentHighlightMode This property returns or sets a value determining how commented text is highlighted in the document.
CommentReplies Returns the identifiers of all replies of the specified comment.
CommentStart Returns the index (one-based) of the first character of the text associated with the specified comment.
CommentText Returns or sets the comment's text.
CommentUserName Returns the name of the user who has commented the document.
ControlChars Specifies if control characters are visible.
CurrentInputPosition Returns or sets an array of three values which specify the page, line and column number of the current text input position.
CurrentPages Returns the number of pages contained in the current document.
DataText The DataText property is used internally by Visual Basic when a Text Control is used as a bound control.
DataTextFormat When using a Text Control as a bound control, this property specifies if the data which is exchanged with a database is text or binary data.
Device This property returns or sets the device for which the current Text Control document is formatted.
DisplayColor This property gets or sets the display colors of a TextControl.
DocumentPermissions Specifies settings determining how the document can be edited and formatted, when the EditMode is changed from Edit to Protected or Password Protected.
EditableRegionHighlightMode This property returns or sets a value determining how editable regions are highlighted in the document.
EditableRegionUserId Returns or sets a user-defined identifier of an editable region.
EditableRegionUserName Returns or sets the name of the user who can edit the region.
EditMode Specifies whether the document is protected or can be freely edited and formatted.
Enabled Returns or sets a value that determines whether a Text Control can respond to user-generated events.
EnableSpellChecking Gets or sets a value indicating whether spell checking is active or not.
FieldAtInputPos Returns the field identifier of the field containing the input position.
FieldChangeable Specifies if the contents of a marked text field can be changed by the user.
FieldCurrent Returns or sets the identifier of the current marked text field for the Fieldxxx properties, methods and events.
FieldData This property relates numeric or string data to a marked text field.
FieldDeleteable Specifies whether a marked text field can be deleted by the user.
FieldEditAttr This property returns or sets attributes for advanced editing inside marked text fields.
FieldEnd Returns the end position of a marked text field.
FieldHighlightColor This property returns or sets the highlight color of a text field.
FieldHighlightMode This property returns or sets the highlight mode of a text field.
FieldHighlightTransparency This property returns or sets the transparency of a text field's highlight color.
FieldLinkTargetMarkers Gets or sets a value indicating that markers for hypertext targets are shown or not.
FieldPosX Returns the horizontal position of a marked text field.
FieldPosY Returns the vertical position of a marked text field.
FieldStart Specifies the start position of a marked text field.
FieldText Returns or sets the text which is contained within a marked text field.
FieldType This property sets or returns the type of a marked text field.
FieldTypeData This property sets or returns the data that belongs to a marked text field of a special type.
FontBold Returns or sets the bold font style.
FontItalic Returns or sets the italic font style.
FontName Returns or sets the font used to display text.
FontSettings Determines which kind of fonts can be used in a document.
FontSize Returns or sets a value that specifies the size of the font used to display text.
FontStrikethru Returns or sets the strike thru font style.
FontUnderline Returns or sets the underline font style.
FontUnderlineStyle This property determines styles for the FontUnderline property.
FootnoteHighlightMode This property returns or sets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
FootnoteName Returns or sets a name for the footnote.
FootnoteNumberFormat This property returns or sets the footnotes' number format.
FootnoteReferenceMarkEnd Returns the index (one-based) of the last character of the footnote's reference mark.
FootnoteReferenceMarkStart Returns the index (one-based) of the first character of the footnote's reference mark.
FootnoteStartNumber This property returns or sets the number for the first footnote.
ForeColor Returns or sets the color used to display text in a Text Control.
FormatSelection Specifies whether character and paragraph formatting properties apply to the whole text or to a particular selection only.
FormFieldCheckedChar This property sets or returns the character which is used to display a checkbox in the checked state.
FormFieldCheckedChars This property returns possible characters which can be used to display the checkbox in the checked state.
FormFieldDate This property sets or returns the date of a date field.
FormFieldDateFormat This property sets or returns the format string which is used to display the date of a date field.
FormFieldDateFormats This property returns format picture strings which can be used to format the date.
FormFieldEmptyWidth This property sets or returns the width of a combobox, dropdown list, date field or form textfield which is used when the field is empty.
FormFieldItems This property sets or returns the items of a combobox or dropdown list as a sequence of strings, separated through TAB (9) characters.
FormFieldUncheckedChar This property sets or returns the character which is used to display a checkbox in the unchecked state.
FormFieldUncheckedChars This property returns possible characters which can be used to display the checkbox in the unchecked state.
FormulaReferenceStyle Gets or sets a value determining how references to table cells in formulas are specified.
FrameColor Returns or sets the background color for selected paragraphs.
FrameDistance Returns or sets the distance between text and paragraph frame for the currently selected paragraph(s).
FrameLineColor Returns or sets the color for the frame lines of selected paragraphs.
FrameLineWidth Specifies the line widths of the currently selected paragraphs' frames.
FrameStyle Returns or sets the style of the currently selected paragraphs' frames.
HeaderFooter This property determines which kind of headers and/or footers the document or a section contains.
HeaderFooterAtInputPos Returns which header or footer owns the current text input position.
HeaderFooterConnectedToPrevious This property returns or sets a value specifying whether a header or footer is connected with the header or footer of the previous section.
HeaderFooterPosition This property specifies the position of a header or footer.
HeaderFooterStyle This property determines how headers and footers can be activated and how activated headers and footers appear on the screen.
HideSelection Specifies whether a text selection is hidden when the Text Control looses the input focus.
hWnd Returns a handle to a Text Control.
ImageDisplayMode Provides several modes to set the way in which images are displayed or refreshed.
ImageExportCompressionQuality Determines a value between 1 and 100, which is the quality of a lossy data compression used, if the image is saved.
ImageExportFilename Determines the file name of an image or signature field used if a document is saved.
ImageExportFilters This property returns a string which specifies the available filters for exporting images.
ImageExportFormat Determines the format used if an image is saved.
ImageExportMaxResolution Determines the maximum resolution in dots per inch used, if the image is saved.
ImageFilename Determines the image file name of an inserted image or signature field.
ImageFilters This property returns a string which specifies the available image filters.
ImageSaveMode Determines whether the image is stored through its data or through its file reference.
IndentB Returns or sets an additional bottom distance (in twips) for a paragraph or a selected range of paragraphs.
IndentFL Returns or sets an additional left indent (in twips) for the first line of a paragraph or a selected range of paragraphs.
IndentL Returns or sets the left indent (in twips) for a paragraph or a selected range of paragraphs.
IndentR Returns or sets the right indent (in twips) for a paragraph or a selected range of paragraphs.
IndentT Returns or sets an additional top distance (in twips) for a paragraph or a selected range of paragraphs.
InsertionMode Specifies whether text is inserted or overwrites existing text.
IsFormulaCalculationEnabled Gets or sets a value indicating whether formulas in tables are automatically calculated when the text of an input cell is changed.
IsTrackChangesEnabled Gets or sets a value indicating whether track changes is active or not.
Justification Gets or sets the kind of justification in documents containing Arabic or Hebrew characters.
KeepLinesTogether Gets or sets a value indicating whether a page break is allowed within a paragraph.
KeepWithNext If this property is set to true for a paragraph, it is displayed on the same page as its following paragraph.
Language Determines the language in which Text Control displays dialog boxes and error messages.
LineSpacing Specifies the line spacing for the currently selected paragraphs as a percentage of the font size.
LineSpacingT Specifies the line spacing for the currently selected paragraphs in twips.
ListType Returns or sets a list type for a paragraph or a selected range of paragraphs.
LoadSaveAttribute This property enables an application to specify several attributes that can be used in combination with the Load and Save methods for the following situations: 1.
Locale Specifies a language for the selected text.
LockWindowUpdate Disables or reenables redrawing.
MisspelledWordAtInputPos Gets the number of the misspelled word at the current text input position.
MisspelledWordLength Gets the length of the misspelled word with the specified number.
MisspelledWords Gets the current number of misspelled words.
MisspelledWordStart Gets the zero-based position of the misspelled word with the specified number.
MousePointer Returns or sets a value indicating the type of mouse pointer displayed when the mouse is over a particular part of a Text Control at run time.
NumberingAttribute This property returns or sets attributes for numbered lists.
ObjectCurrent Returns or sets the current object for setting properties of images, text frames, signature fields or OLE objects.
ObjectDistance Specifies the distance (in twips) between an image, text frame, signature field or OLE object and the text that flows around it.
ObjectHeight Returns or sets the natural height, in twips, of an image, text frame, signature field or OLE object.
ObjectInsertionMode Gets or sets an image's, text frame's, signature field's or OLE object's formatting behaviour.
ObjectItem Returns a reference to an OLE object.
ObjectName Defines a name for an image, text frame, signature field or OLE object.
ObjectPosX Gets or sets the image's, text frame's, signature field's or OLE object's horizontal position, in twips.
ObjectPosY Gets or sets the image's, text frame's, signature field's or OLE object's vertical position, in twips.
ObjectScaleX Specifies the object's horizontal scaling factor as a percentage.
ObjectScaleY Specifies the object's vertical scaling factor as a percentage.
ObjectSizeMode Specifies whether an inserted image, text frame, signature field or OLE object can be moved or resized at run time.
ObjectTextflow Gets or sets a value in which way text flows around an image, text frame, signature field or OLE object.
ObjectTransparency Specifies the object's transparency.
ObjectUserId Defines a user-defined identifier for an image, text frame, signature field or OLE object.
ObjectWidth Returns or sets the natural width, in twips, of an image, text frame, signature field or OLE object.
PageBorderAttribute This property returns or sets page border attributes for the whole document or for a document's section.
PageBreakBefore If this property is set to true for a paragraph, it is always displayed on top of a page.
PageCount Returns the number of pages, the document contains.
PageHeight Returns or sets the height of the page for the whole document or for a document's section.
PageImage Returns an image of the specified page which can be used with the Picture property of a Form object, PictureBox control or Image control.
PageLength Gets the number of characters of the page, including the page break character at the end of the page.
PageMarginB Returns or sets the bottom page margin for the whole document or for a document's section.
PageMarginL Returns or sets the left page margin for the whole document or for a document's section.
PageMarginR Returns or sets the right page margin for the whole document or for a document's section.
PageMarginT Returns or sets the top page margin for the whole document or for a document's section.
PageOrientation Returns or sets the page orientation, portrait or landscape.
PageStart Gets the number (one-based) of the page's first character.
PageViewStyle Defines the kind of view to display the page background.
PageWidth Returns or sets the width of the page for the whole document or for a document's section.
ParagraphCount Returns the number of paragraphs, the document contains.
PermanentControlChars Gets or sets a value specifying which control characters are shown permanently on the screen.
PrintColors Specifies whether text colors are printed as colors or in black.
PrintDevice Sets the printer device context for TextContol's built-in printing function.
PrintOffset Determines whether Text Control starts printing exactly at the top left corner of the page, or at the printer's physical printing offset.
PrintZoom Specifies a zoom factor for printing.
ResourceFile Returns or sets the file name of a resource library which Text Control loads to display resources like information strings, error messages and built-in dialog boxes.
RightToLeft Returns or sets a value specifying whether the Text Control's vertical scrollbar is at the left or right border and whether the Text Control has a right or left zoom origin.
RTFSelText This property works much like the standard SelText property.
RulerHandle Specifies the ruler control to be used as horizontal ruler with a Text Control.
ScrollBars Returns or sets a value indicating whether a Text Control has horizontal or vertical scroll bars.
ScrollPosX Specifies the position of the horizontal scroll bar in twips.
ScrollPosY Specifies the position of the vertical scroll bar in twips.
SectionAtInputPos Returns the number of the section containing the current text input position.
SectionBreakKind Returns or sets the kind of the section break the section starts with.
SectionCount Returns the number of sections, the document contains.
SectionCurrent Returns 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.
SectionLength Gets the number of characters in the section.
SectionRestartPageNumbering Returns or sets a value specifying whether page numbering is restarted at the beginning of a document section.
SectionStart Gets the number (one-based) of the section's first character.
SelectionViewMode Specifies whether text selections are displayed with a transparent bitmap or through inverting the text.
SelectObjects Specifies a value controlling the selection of objects such as images and textframes which are inserted behind the text.
SelLength Returns or sets the number of characters selected.
SelStart Returns or sets the starting point of text selected or indicates the position of the insertion point if no text is selected.
SelText Returns or sets the string containing the currently selected text.
SignatureFieldSignerData Defines info data of a suggested signer.
SizeMode Specifies whether the Text Control can be moved or resized at run time.
StatusBarHandle Specifies the status bar control to be used with a Text Control.
StyleCurrent Returns or sets the formatting style at the current input position or, if text is selected, changes all styles of the selected text to the specified style.
Styles Returns a collection of all formatting styles in a document.
SupportedFonts This property returns a string specifying the names of all available fonts.
TabCurrent Specifies the current tab number for the properties TabPos and TabType.
TabKey Determines if the keyboard's tab key moves the input focus to the next control or to insert tabulators in the Text Control's text.
TableAtInputPos Returns the table identifier of the table containing the input position.
TableCanChangeAttr This property provides information about whether the attributes of all the selected table cells can be altered.
TableCanDeleteColumn This property provides information about whether table columns can be deleted.
TableCanDeleteLines This property provides information about whether table lines can be deleted.
TableCanInsert This property provides information about whether a table can be inserted.
TableCanInsertColumn This property provides information about whether a table column can be inserted.
TableCanInsertLines This property provides information about whether table lines can be inserted.
TableCanMergeCells This property provides information about whether table cells can be merged.
TableCanSplit Checks whether a table can be split.
TableCanSplitCells This property provides information about whether table cells can be split.
TableCellAttribute Returns or sets attributes of a table cell.
TableCellData Returns or sets a string associated with the specified table cell.
TableCellFormula Returns or sets the table cell's formula.
TableCellLength Returns the number of characters in a table cell.
TableCellNumberFormat Returns or sets a number format for the table cell.
TableCellStart Returns the character index (one-based) of the first character in a table cell.
TableCellText Returns or sets the text of a table cell.
TableCellTextType Returns or sets the text type of the table cell which determines whether the cell's text is interpreted as a number or as text.
TableColAtInputPos Returns the number of the current input column in a table.
TableColumns Informs about the number of columns a specified table contains.
TableGridLines This property determines whether or not grid lines in tables are visible.
TableNestedLevel Gets the nested level for the specified table.
TableRowAtInputPos Returns the number of the current input row in a table.
TableRows Informs about the number of rows a specified table contains.
TabPos Determines the position, in twips, of a certain tab.
TabType Determines the type of a certain tab.
TargetAtInputPos Returns the target identifier of the target at the current text input position.
TargetData This property relates numeric or string data to a link target.
TargetName Returns or sets the name of a link target.
TargetPos Returns the position of a target.
TargetStart Returns the target's character index, one-based, in the document.
Text Returns or sets the complete text of a Text Control.
TextBkColor Returns or sets the background color for selected text.
TextDirection Specifies the writing direction.
TextFrameBackColor Returns or sets the background color of a text frame.
TextFrameBorderWidth Specifies the width, in twips, of a text frame's border line.
TextFrameInternalMargin Specifies the distance (in twips) between a text frame's border line and the text.
TextFrameMarkerLines This property determines whether or not marker lines for text frames are visible.
TrackedChangeEnd Returns the index (one-based) of the last character of the specified tracked change.
TrackedChangeKind Returns the kind of tracked change.
TrackedChangeStart Returns the index (one-based) of the first character of the specified tracked change.
TrackedChangeTime Returns the date and time when the change has been made.
TrackedChangeUserName Returns the name of the user who has changed the document.
UserNames Gets or sets a list of names specifying users who have access to a document.
VerticalRulerHandle Specifies the ruler control to be used as vertical ruler with a Text Control.
ViewMode Returns or sets the mode in which Text Control displays its text contents.
WidowOrphanLines Gets or sets the number of lines for widow/orphan control.
WordWrapMode This property returns or sets the mode how Text Control handles word wrapping in lines without space or other word breaking characters.
XMLEditMode Specifies whether Text Control operates in an edit mode that validates the XML document according to the document's DTD.
XMLElements Returns a collection of all XML elements with the same tag name.
ZoomFactor Specifies the zoom factor for a Text Control.

Methods

Method Description
Append Appends text in a certain format from a file and inserts it at the end of the current document.
AppendFromMemory Appends text in a certain format from a buffer and inserts it at the end of the current document.
ChangeCapitalization Changes the capitalization of all selected characters depending on the Option parameter.
ChangeTextDirection Changes the text direction of all selected paragraphs.
Clip Performs Text Control clipboard actions.
CommentDelete This method removes a comment from the document.
CommentEdit This method opens a comment input control which the end-user can use to edit to the specified comment.
CommentGetReplied Gets the comment for which the specified comment is a reply.
CommentInsert This method opens a comment input control which the end-user can use to insert a new comment in the document.
CommentNext This method returns the identifier of the comment that follows the specified comment in the Text Control's current text.
CommentReply This method opens a comment input control which the end-user can use to reply to the specified comment.
DecreaseIndent Decreases the left indent of all paragraphs contained in the current text selection.
EditableRegionDelete This method can be used to delete an editable region from the document.
EditableRegionGoto Sets the current input position to the beginning of the specified editable region and scrolls the text so that this position is at the top of the control's visible text.
EditableRegionInsert This method inserts a new editable region in the text.
EnableAutomationServer Enables a Text Control to work as an automation server.
EndUndoAction Defines the end of an undo action.
FieldDelete Deletes the marked text field specified by the FieldCurrent property, or changes it to simple text.
FieldGoto Sets the current input position to the beginning of the specified marked text field and scrolls the text so that this position is at the top of the control's visible text.
FieldInsert Inserts a new marked text field at the current caret position.
FieldNext This method returns the identifier of the marked text field that follows the specified field in the Text Control's current text.
FieldSetInputPos If the current text input position is a position at the beginning or at the end of a marked text field with a doubled input position, this method can be used to define whether the position is inside or outside the field.
Find Searches the text in a Text Control for a given string.
FindReplace Displays a 'Find' or 'Replace' dialog box.
FontDialog Invokes the Text Control's built-in font dialog box and, after the user has closed the dialog box, specifies whether he has changed something.
FootnoteDelete This method removes a footnote from the document.
FootnoteEdit Sets the current text input position in the footnote section at the end of the current footnote text, so that the text can be edited or formatted.
FootnoteGoto Sets the current input position to the reference mark of the specified footnote and scrolls the text so that this position is at the top of the control's visible text.
FootnoteInsert This method adds a new footnote to the document at the current text input position.
FootnoteNext This method returns the identifier of the footnote that follows the specified footnote in the Text Control's current text.
FormCheckBoxInsert This method inserts a checkbox field into the document at the current text input position.
FormComboBoxInsert This method inserts a combobox into the document at the current text input position.
FormDateFieldInsert This method inserts a date field into the document at the current text input position.
FormDropDownListInsert This method inserts a dropdown list into the document at the current text input position.
FormFieldDialog This method opens a built-in dialog box to set formatting attributes for the specified form field.
FormTextFieldInsert This method inserts a text input field for a form into the document at the current text input position.
GetBaseLinePos Returns the baseline position of the specified line.
GetCaretRect Returns the rectangular area covered by the caret which indicates the current text input position.
GetCharFromLine Returns the position of a line's first character.
GetCharRect Returns the rectangular area covered by a certain character.
GetLineCount Returns the number of text lines in a Text Control.
GetLineFromChar Returns the index of the line which contains the character with the specified character position.
GetLineFromPoint Returns the index of the line which contains a given point.
GetLineRect Returns the rectangular area covered by a line of text.
GetTextExtent Returns the extension of the complete text in twips.
GrowFont Increases the font size of each font contained in the current text selection.
HeaderFooterActivate Activates or deactivates a header or footer.
HeaderFooterSelect This method determines whether a certain Text Control property or method manipulates a header or a footer or the main text.
ImageInsert This method inserts a new image anchored to a paragraph.
ImageInsertAsChar This method inserts a new image which is then handled like a single character in the text.
ImageInsertFixed This method inserts a new image at a fixed geometrical position.
IncreaseIndent Increases the left indent of all paragraphs contained in the current text selection.
InputPosFromPoint Returns the text input position belonging to a certain geometric position.
InsertSymbolDialog Opens a modeless dialog box which can be used to insert symbol characters.
ListAttrDialog Invokes the Text Control's built-in dialog box for setting attributes of bulleted and numbered lists.
Load Loads text in a certain format from a file and inserts it into the Text Control.
LoadDialog Opens the system 'Open' dialogbox and loads a document as specified.
LoadFromMemory Loads text in a certain format from a buffer and inserts it into the Text Control.
LocaleDialog Invokes the Text Control's built-in language dialog box and, after the user has closed the dialog box, specifies whether he has changed something.
MisspelledWordDelete Removes the specified misspelled word from a Text Control document.
ObjectAttrDialog This method invokes the built-in dialog box for setting attributes of images, text frames and OLE objects.
ObjectChangeZOrder Changes the z-order of an image, text frame, signature field or OLE object.
ObjectDelete This method deletes an image, text frame, signature field or OLE object.
ObjectGetFromName Looks for the object with the specified name.
ObjectGetFromUserId Looks for the object with the specified user identifier.
ObjectGetSelected This method returns the identifier of the currently selected object.
ObjectInsert This method inserts a new OLE object or other control anchored to a paragraph.
ObjectInsertAsChar This method inserts a new OLE object or other control which is then handled like a single character in the text.
ObjectInsertFixed This method inserts a new OLE object or other control at a fixed geometrical position.
ObjectNext This method returns the identifier of the object that follows the specified object in a Text Control's internal list of objects.
PageNumberDialog This method opens a built-in dialog box to set formatting attributes for the specified pagenumber field.
PageSelect This method can be used to select the specified page.
ParagraphDialog Invokes the Text Control's built-in paragraph attributes dialog box and, after the user has closed the dialog box, specifies whether he has changed something.
ParagraphSelect This method can be used to select the specified paragraph.
Paste Replaces the current selection in the Text Control with the contents of the Clipboard.
PrintDialog Opens the system printing dialog and prints a Text Control document as specified through the dialog.
PrintDoc Prints a Text Control document or a part of a Text Control document on the default printer.
PrintPage Prints a page of text on the default printer.
Redo This method can be used to redo the last Text Control operation.
Refresh This method forces a complete repaint of a Text Control.
ResetContents Deletes the complete contents of a Text Control including tables, objects, marked text fields and headers and footers.
Save Saves data in a file with a specified format.
SaveDialog Opens the system 'Save As' dialogbox and saves a document as specified.
SaveToMemory Returns a one-dimensional byte array containing text data in a specified format.
SaveToMemoryBuffer Returns a buffer containing text data in a specified format.
SectionFormatDialog This 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.
SectionInsert Inserts a section break at the text input position or at a specified position.
SectionSelect This method can be used to select the specified section.
ShrinkFont Decreases the font size of each font contained in the current text selection.
SignatureFieldInsert This method inserts a new signature field anchored to a paragraph.
SignatureFieldInsertAsChar This method inserts a new signature field, which is then handled as a single character in the text.
SignatureFieldInsertFixed This method inserts a new signature field at a fixed geometrical position.
StartUndoAction Defines the beginning of an undo action.
StyleDialog Invokes the Text Control's built-in dialog box for creating, deleting and modifying formatting styles.
TabDialog Invokes the Text Control's built-in dialog box for setting tabs.
TableAttrDialog This method invokes the built-in dialog box for setting table attributes and, after the user has closed the dialog box, specifies whether he has changed something.
TableCellSelect This method can be used to select a table cell, a table row, a table column or a complete table.
TableDelete This method can be used to delete a complete table from the document.
TableDeleteColumn This method deletes the currently selected table columns or the table column containing the text input position.
TableDeleteLines This method deletes the currently selected table lines or the table line at the current input position.
TableFromSelection This method returns the table identifier of the currently selected table.
TableGetOuter This method returns a table's outer table.
TableGetOuterMost This method returns a table's outermost table.
TableInsert This method inserts a new table in the text.
TableInsertColumn This method inserts a table column left or right of the column with the current input position.
TableInsertDialog This method opens a built-in dialog box which offers options to define a new table.
TableInsertLines This member function inserts table lines above or below the table line with the current input position.
TableMergeCells This method merges all selected table cells.
TableNext This method returns a enumaration number of the table that follows the specified table in the Text Control's current text.
TableOfContentsDelete This method can be used to delete a table of contents.
TableOfContentsDialog Invokes the built-in dialog box for inserting or changing a table of contents.
TableOfContentsUpdate This method can be used to update the content and the page numbers of a table of contents.
TableSelectCells This method can be used to select a rectangular part of a table defined through two table cells.
TableSplit Splits a table below or above the current input position.
TableSplitCells This method splits all selected table cells.
TargetDelete This method can be used to delete a link target or bookmark from the document.
TargetGoto Sets the current text input position to the position of the specified link target and scrolls the text so that this position is at the top of the control's visible text.
TargetInsert This method inserts a new link target or bookmark in the text at the current text input position.
TargetNext This method returns the identifier of the link target that follows the specified target in the Text Control's current text.
TextFrameInsert This method inserts a new text frame anchored to a paragraph.
TextFrameInsertAsChar This method inserts a new text frame, which is then handled as a single character in the text.
TextFrameInsertFixed This method inserts a new text frame at a fixed geometrical position.
TextFrameSelect This method determines whether a certain Text Control property or method manipulates a text frame or the main text.
TrackedChangeDelete This method removes a tracked change from the document.
TrackedChangeNext This method returns the identifier of the tracked change that follows the specified tracked change in the Text Control's current text.
Undo This method can be used to undo the last Text Control operation.
Zoom Zooms the contents of the TextControl using the specified option.

Events

Event Description
AutoScroll This event occurs when the cursor leaves the visible portion of a Text Control's client area whilst a text selection is being expanded with the mouse.
CannotTrackChange Determines how to handle a change of the document that cannot be added to the list of tracked changes.
CaretOut Occurs when the current input position indicated through the caret has been moved to a control that is completely out of the visible area.
CaretOutBottom Occurs when the current input position indicated through the caret has been moved out of the visible area at the bottom.
CaretOutLeft Occurs when the current input position indicated through the caret has been moved out of the visible area at the left side.
CaretOutRight Occurs when the current input position indicated through the caret has been moved out of the visible area at the right side.
CaretOutTop Occurs when the current input position indicated through the caret has been moved out of the visible area at the top.
Change Indicates that the contents of a Text Control have changed.
CharFormatChange Occurs when the formatting attributes of the selected characters have been changed.
Click Occurs when the user presses and then releases a mouse button over a Text Control.
CommentChanged Occurs when the text of a comment has been changed.
CommentCreated Occurs when a comment has been created.
CommentDeleted Occurs when a comment has been deleted.
CommentedTextEntered Occurs when the current input position indicated by the caret has been moved to a position that belongs to a commented piece of text.
CommentedTextLeft Occurs when the current input position indicated by the caret has left a commented piece of text.
ConnectTools MS Access only: Occurs after all Text Controls, Rulers, Button Bars and Status Bars have been created and are ready to be connected.
ContextMenuOpening Occurs before a built-in context menu is opened.
DblClick Occurs when the user presses and releases a mouse button and then presses and releases it again over a Text Control.
EditableRegionEntered Occurs when the current input position has been moved to a position that belongs to an editable region.
EditableRegionLeft Occurs when the current input position has left an editable region.
Error Occurs when the Text Control reports an error.
FieldChanged Occurs when the text of a marked text field has been changed.
FieldClicked Occurs when a marked text field has been clicked on.
FieldCreated Occurs when a marked text field has been pasted from the clipboard.
FieldDblClicked Occurs when a marked text field has been double-clicked on.
FieldDeleted Occurs when a marked text field has been deleted.
FieldEntered Occurs when the current input position, indicated by the caret, has been moved to a position that belongs to a marked text field.
FieldLeft Occurs when the current input position indicated by the caret has been moved to a position that does not belong to the marked text field at the previous input position.
FieldLinkClicked Occurs when a marked text field has been clicked on that represents the source of a hypertext link.
FieldSetCursor Occurs when the cursor is moved over a marked text field.
FootnoteCreated Occurs when a footnote has been created.
FootnoteDeleted Occurs when a footnote has been deleted.
FootnoteReferenceMarkEntered Occurs when the current input position has been moved to the position of a footnote reference mark.
FootnoteReferenceMarkLeft Occurs when the current input position has left the position of a footnote reference mark.
FootnoteSectionActivated Occurs when the footnote section of a document's page gets the current text input position from another part of the document.
FootnoteSectionDeactivated Occurs when the footnote section of a document's page has lost the current text input position.
FormCheckStateChanged Occurs when the check state of a checkbox has been changed.
FormDateChanged Occurs after the date of a date formfield has been changed.
FormFieldTextChanged Occurs after the text of a text formfield has been changed.
FormSelectedItemChanged Occurs after the selected item of a combobox or a dropdown list has been changed.
HeaderFooterActivated Occurs when a header or footer has been activated.
HeaderFooterDeactivated Occurs when a header or footer has been deactivated.
HExpand Occurs when the Text Control has changed its window size horizontally.
HScroll Occurs when the horizontal scroll position has been changed.
KeyDown Occurs when the user presses a key while the Text Control has the input focus.
KeyPress Occurs when the user presses and releases an ANSI key while the Text Control has the input focus.
KeyStateChange Occurs when the character insertion mode or when the state of the NUMLOCK or CAPSLOCK key has been changed.
KeyUp Occurs when the user releases a key while the Text Control has the input focus.
MouseDown Occurs when the user presses a mouse button.
MouseMove Occurs when the user moves the mouse.
MouseUp Occurs when the user releases a mouse button.
Move Occurs when a Text Control has been moved with the mouse.
ObjectClicked Occurs when an object has been clicked on.
ObjectCreated This event specifies that a new object has been created.
ObjectDblClicked Occurs when an object has been double-clicked on.
ObjectDeleted Occurs when an object has been deleted.
ObjectGetData Occurs when a document which contains objects, is saved.
ObjectGethWnd Occurs when a document which contains objects, is loaded.
ObjectGetZoom Occurs when an object's zoom factor is requested.
ObjectMoved Occurs if an image, text frame, signature field or OLE object has been moved with the built-in mouse interface.
ObjectPrint Occurs when a document containing objects is printed.
ObjectRightClicked Occurs when an object has been clicked on with the right mouse button.
ObjectScrollOut Occurs when an object is scrolled out of the visible area.
ObjectSetData Occurs when a document which contains objects, is loaded.
ObjectSetZoom Occurs when an object's zoom factor is to be changed.
ObjectSized Occurs if an image, text frame, signature field or OLE object has been resized with the built-in mouse interface.
PageChanged Occurs when the text input position has been moved to another page.
PageFormatChange Occurs when the page format settings have been changed.
ParagraphChange Occurs when the character input position has been moved to another paragraph.
ParagraphFormatChange Occurs when the paragraph attributes of the selected paragraphs have been changed.
PosChange Occurs when the current character input position has been changed.
SectionChanged Occurs when the text input position has been moved to another section.
Size Occurs when a Text Control has been resized with the mouse.
SpellCheckText Occurs, if the document's text has been altered and the spelling of the new text must be checked.
StyleChanged Occurs after the character input position has been moved to a text part formatted with another style.
StyleListChanged Occurs after one or more formatting styles have been added or removed.
TableCreated Occurs after a new table has been created as a result of a text insertion via the clipboard.
TableDeleted Occurs after a table has been deleted.
TableFormatChanged Occurs after a table has been formatted with the built-in mouse-interface.
TableOfContentsCreated Occurs when a table of contents has been created.
TableOfContentsDeleted Occurs when a table of contents has been deleted.
TableOfContentsEntered Occurs when the current text input position has been moved to a position that belongs to a table of contents.
TableOfContentsLeft Occurs when the current text input position has left a table of contents.
TargetCreated Occurs when a link target or bookmark has been created.
TargetDeleted Occurs when a link target or bookmark has been deleted.
TextFrameActivated Occurs when a text frame has obtained the input focus.
TextFrameDeactivated Occurs when a text frame has lost the input focus.
TrackedChangeChanged Occurs when the text of a tracked change has been altered.
TrackedChangeCreated Occurs when a tracked change has been created.
TrackedChangeDeleted Occurs when a tracked change has been deleted.
VExpand Occurs when the Text Control has changed its window size vertically.
VScroll Occurs when the vertical scroll position has been changed.
XMLInvalid Occurs when a loaded XML document cannot be validated with the document type definition (DTD) referenced in the document.
XMLNotWellFormed Occurs when a loaded XML document is not well-formed.
Zoomed Occurs when the Text Control has been zoomed.

See Also