TX Text Control ActiveX

TXTextControl Control

Class

The TXTextControl control is the main control that is used to display and edit a text document. The large amount 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

Members

Properties

PropertyDescription
AlignmentSpecifies the alignment of text in a Text Control.
AllowDragGets or sets a value indicating whether the control can be a source of a Drag&Drop operation.
AllowDropGets or sets a value indicating whether the control can accept data that the user drags onto it.
AllowUndoDetermines whether the undo buffer is active or not.
AutoBaseLineReturns or sets values specifying whether the selected text is automatically sub- or superscripted.
AutoExpandSpecifies 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.
BackColorReturns or sets the background color of a Text Control.
BackStyleReturns or sets a value indicating whether the background of a Text Control is transparent or opaque.
BaseLineSpecifies the baseline alignment for selected text.
BorderStyleReturns or sets the border style for a Text Control.
BulletAttributeThis property returns or sets attributes for bulleted lists.
ButtonBarHandleSpecifies the button bar control to be used with a Text Control.
CanCharacterFormatInforms whether character formatting attributes can be changed for the currently selected text.
CanCopyInforms whether a part of a Text Control's document has been selected and can be copied to the clipboard.
CanDocumentFormatInforms whether page and section formatting attributes can be changed.
CanEditInforms whether the document's text can be changed at the current text input position.
CanParagraphFormatInforms whether paragraph formatting attributes can be changed for the currently selected text.
CanPasteInforms whether the clipboard contains a format that can be pasted into a Text Control's document.
CanPrintInforms whether the document can be printed.
CanRedoInforms whether an operation can be re-done using the Redo method.
CanStyleFormatInforms whether the document can be formatted with formatting styles.
CanTableFormatInforms whether table formatting attributes and/or the table layout can be changed for the currently selected text.
CanUndoInforms whether an operation can be undone using the Undo method.
CapitalsReturns or sets values specifying whether lowercase letters are displayed with capital letters.
CaretWidthThis property returns or sets the width of the caret in pixels.
CharacterScalingReturns or sets a character scaling, in percent of the average character width, of the selected text.
CharacterSpacingReturns or sets a character spacing value, in twips, of the selected text.
ClipboardFormatsReturns 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.
ClipChildrenThis property is only used for Text Controls which act as a container for other Text Controls or embedded objects.
ClipSiblingsThis property determines the clipping behavior of each of the child controls which belong to a common container control.
ColumnDistanceSets the distance, in twips, between the columns on a page for the whole document or for a document's section.
ColumnLineColorReturns or sets the color of a dividing line between two page columns, either for the whole document or for a certain section.
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.
ColumnsReturns or sets the number of columns on a page for the whole document or for a document's section.
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.
CommentCreationTimeReturns the date and time when the specified comment has been made.
CommentEndReturns the index (one-based) of the last character of the text associated with the specified comment.
CommentHighlightModeThis property returns or sets a value determining how commented text is highlighted in the document.
CommentRepliesReturns the identifiers of all replies of the specified comment.
CommentStartReturns the index (one-based) of the first character of the text associated with the specified comment.
CommentTextReturns or sets the comment's text.
CommentUserNameReturns the name of the user who has commented the document.
ControlCharsSpecifies if control characters are visible.
CurrentInputPositionReturns or sets an array of three values which specify the page, line and column number of the current text input position.
CurrentPagesReturns the number of pages contained in the current document.
DataTextThe DataText property is used internally by Visual Basic when a Text Control is used as a bound control.
DataTextFormatWhen 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.
DeviceThis property returns or sets the device for which the current Text Control document is formatted.
DisplayColorThis property gets or sets the display colors of a TextControl.
DocumentPermissionsSpecifies settings determining how the document can be edited and formatted, when the EditMode is changed from Edit to Protected or Password Protected.
EditableRegionHighlightModeThis property returns or sets a value determining how editable regions are highlighted in the document.
EditableRegionUserIdReturns or sets a user-defined identifier of an editable region.
EditableRegionUserNameReturns or sets the name of the user who can edit the region.
EditModeSpecifies whether the document is protected or can be freely edited and formatted.
EnabledReturns or sets a value that determines whether a Text Control can respond to user-generated events.
EnableSpellCheckingGets or sets a value indicating whether spell checking is active or not.
FieldAtInputPosReturns the field identifier of the field containing the input position.
FieldChangeableSpecifies if the contents of a marked text field can be changed by the user.
FieldCurrentReturns or sets the identifier of the current marked text field for the Fieldxxx properties, methods and events.
FieldDataThis property relates numeric or string data to a marked text field.
FieldDeleteableSpecifies whether a marked text field can be deleted by the user.
FieldDescriptiveTextDefines a descriptive text for a hyperlink or form field.
FieldEditAttrThis property returns or sets attributes for advanced editing inside marked text fields.
FieldEndReturns the end position of a marked text field.
FieldHighlightColorThis property returns or sets the highlight color of a text field.
FieldHighlightModeThis property returns or sets the highlight mode of a text field.
FieldHighlightTransparencyThis property returns or sets the transparency of a text field's highlight color.
FieldLinkTargetMarkersGets or sets a value indicating that markers for hypertext targets are shown or not.
FieldPosXReturns the horizontal position of a marked text field.
FieldPosYReturns the vertical position of a marked text field.
FieldStartSpecifies the start position of a marked text field.
FieldTextReturns or sets the text which is contained within a marked text field.
FieldTypeThis property sets or returns the type of a marked text field.
FieldTypeDataThis property sets or returns the data that belongs to a marked text field of a special type.
FontBoldReturns or sets the bold font style.
FontItalicReturns or sets the italic font style.
FontNameReturns or sets the font used to display text.
FontSettingsDetermines which kind of fonts can be used in a document.
FontSizeReturns or sets a value that specifies the size of the font used to display text.
FontStrikethruReturns or sets the strike thru font style.
FontUnderlineReturns or sets the underline font style.
FontUnderlineStyleThis property determines styles for the FontUnderline property.
FootnoteHighlightModeThis property returns or sets a value indicating whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.
FootnoteNameReturns or sets a name for the footnote.
FootnoteNumberFormatThis property returns or sets the footnotes' number format.
FootnoteReferenceMarkEndReturns the index (one-based) of the last character of the footnote's reference mark.
FootnoteReferenceMarkStartReturns the index (one-based) of the first character of the footnote's reference mark.
FootnoteStartNumberThis property returns or sets the number for the first footnote.
ForeColorReturns or sets the color used to display text in a Text Control.
FormatSelectionSpecifies whether character and paragraph formatting properties apply to the whole text or to a particular selection only.
FormFieldCheckedCharThis property sets or returns the character which is used to display a checkbox in the checked state.
FormFieldCheckedCharsThis property returns possible characters which can be used to display the checkbox in the checked state.
FormFieldDateThis property sets or returns the date of a date field.
FormFieldDateFormatThis property sets or returns the format string which is used to display the date of a date field.
FormFieldDateFormatsThis property returns format picture strings which can be used to format the date.
FormFieldEmptyWidthThis property sets or returns the width of a combobox, dropdown list, date field or form textfield which is used when the field is empty.
FormFieldItemsThis property sets or returns the items of a combobox or dropdown list as a sequence of strings, separated through TAB (9) characters.
FormFieldUncheckedCharThis property sets or returns the character which is used to display a checkbox in the unchecked state.
FormFieldUncheckedCharsThis property returns possible characters which can be used to display the checkbox in the unchecked state.
FormulaReferenceStyleGets or sets a value determining how references to table cells in formulas are specified.
FrameColorReturns or sets the background color for selected paragraphs.
FrameDistanceReturns or sets the distance between text and paragraph frame for the currently selected paragraph(s).
FrameLineColorReturns or sets the color for the frame lines of selected paragraphs.
FrameLineWidthSpecifies the line widths of the currently selected paragraphs' frames.
FrameStyleReturns or sets the style of the currently selected paragraphs' frames.
HeaderFooterThis property determines which kind of headers and/or footers the document or a section contains.
HeaderFooterAtInputPosReturns which header or footer owns the current text input position.
HeaderFooterConnectedToPreviousThis property returns or sets a value specifying whether a header or footer is connected with the header or footer of the previous section.
HeaderFooterPositionThis property specifies the position of a header or footer.
HeaderFooterStyleThis property determines how headers and footers can be activated and how activated headers and footers appear on the screen.
HideSelectionSpecifies whether a text selection is hidden when the Text Control loses the input focus.
hWndReturns a handle to a Text Control.
ImageDisplayModeProvides several modes to set the way in which images are displayed or refreshed.
ImageExportCompressionQualityDetermines a value between 1 and 100, which is the quality of a lossy data compression used, if the image is saved.
ImageExportFilenameDetermines the file name of an image or signature field used if a document is saved.
ImageExportFiltersThis property returns a string which specifies the available filters for exporting images.
ImageExportFormatDetermines the format used if an image is saved.
ImageExportMaxResolutionDetermines the maximum resolution in dots per inch used, if the image is saved.
ImageFilenameDetermines the image file name of an inserted image or signature field.
ImageFiltersThis property returns a string which specifies the available image filters.
ImageSaveModeDetermines whether the image is stored through its data or through its file reference.
IndentBReturns or sets an additional bottom distance (in twips) for a paragraph or a selected range of paragraphs.
IndentFLReturns or sets an additional left indent (in twips) for the first line of a paragraph or a selected range of paragraphs.
IndentLReturns or sets the left indent (in twips) for a paragraph or a selected range of paragraphs.
IndentRReturns or sets the right indent (in twips) for a paragraph or a selected range of paragraphs.
IndentTReturns or sets an additional top distance (in twips) for a paragraph or a selected range of paragraphs.
InsertionModeSpecifies whether text is inserted or overwrites existing text.
IsFormulaCalculationEnabledGets or sets a value indicating whether formulas in tables are automatically calculated when the text of an input cell is changed.
IsTrackChangesEnabledGets or sets a value indicating whether track changes is active or not.
JustificationGets or sets the kind of justification in documents containing Arabic or Hebrew characters.
KeepLinesTogetherGets or sets a value indicating whether a page break is allowed within a paragraph.
KeepWithNextIf this property is set to true for a paragraph, it is displayed on the same page as its following paragraph.
LanguageDetermines the language in which Text Control displays dialog boxes and error messages.
LineSpacingSpecifies the line spacing for the currently selected paragraphs as a percentage of the font size.
LineSpacingTSpecifies the line spacing for the currently selected paragraphs in twips.
ListTypeReturns or sets a list type for a paragraph or a selected range of paragraphs.
LoadSaveAttributeThis 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.
LocaleSpecifies a language for the selected text.
LockWindowUpdateDisables or reenables redrawing.
MisspelledWordAtInputPosGets the number of the misspelled word at the current text input position.
MisspelledWordLengthGets the length of the misspelled word with the specified number.
MisspelledWordsGets the current number of misspelled words.
MisspelledWordStartGets the zero-based position of the misspelled word with the specified number.
MousePointerReturns 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.
NumberingAttributeThis property returns or sets attributes for numbered lists.
ObjectCurrentReturns or sets the current object for setting properties of images, text frames, signature fields or OLE objects.
ObjectDescriptiveTextDefines a descriptive text for an image, text frame, signature field or OLE object.
ObjectDistanceSpecifies the distance (in twips) between an image, text frame, signature field or OLE object and the text that flows around it.
ObjectHeightReturns or sets the natural height, in twips, of an image, text frame, signature field or OLE object.
ObjectInsertionModeGets or sets an image's, text frame's, signature field's or OLE object's formatting behavior.
ObjectItemReturns a reference to an OLE object.
ObjectNameDefines a name for an image, text frame, signature field or OLE object.
ObjectPosXGets or sets the image's, text frame's, signature field's or OLE object's horizontal position, in twips.
ObjectPosYGets or sets the image's, text frame's, signature field's or OLE object's vertical position, in twips.
ObjectScaleXSpecifies the object's horizontal scaling factor as a percentage.
ObjectScaleYSpecifies the object's vertical scaling factor as a percentage.
ObjectSizeModeSpecifies whether an inserted image, text frame, signature field or OLE object can be moved or resized at run time.
ObjectTextflowGets or sets a value in which way text flows around an image, text frame, signature field or OLE object.
ObjectTransparencySpecifies the object's transparency.
ObjectUserIdDefines a user-defined identifier for an image, text frame, signature field or OLE object.
ObjectWidthReturns or sets the natural width, in twips, of an image, text frame, signature field or OLE object.
PageBorderAttributeThis property returns or sets page border attributes for the whole document or for a document's section.
PageBreakBeforeIf this property is set to true for a paragraph, it is always displayed on top of a page.
PageCountReturns the number of pages, the document contains.
PageHeightReturns or sets the height of the page for the whole document or for a document's section.
PageImageReturns an image of the specified page which can be used with the Picture property of a Form object, PictureBox control or Image control.
PageLengthGets the number of characters of the page, including the page break character at the end of the page.
PageMarginBReturns or sets the bottom page margin for the whole document or for a document's section.
PageMarginLReturns or sets the left page margin for the whole document or for a document's section.
PageMarginRReturns or sets the right page margin for the whole document or for a document's section.
PageMarginTReturns or sets the top page margin for the whole document or for a document's section.
PageOrientationReturns or sets the page orientation, portrait or landscape.
PageStartGets the number (one-based) of the page's first character.
PageViewStyleDefines the kind of view to display the page background.
PageWidthReturns or sets the width of the page for the whole document or for a document's section.
ParagraphCountReturns the number of paragraphs, the document contains.
PermanentControlCharsGets or sets a value specifying which control characters are shown permanently on the screen.
PrintColorsSpecifies whether text colors are printed as colors or in black.
PrintDeviceSets the printer device context for TextContol's built-in printing function.
PrintOffsetDetermines whether Text Control starts printing exactly at the top left corner of the page, or at the printer's physical printing offset.
PrintZoomSpecifies a zoom factor for printing.
ResourceFileReturns 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.
RightToLeftReturns 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.
RTFSelTextThis property works much like the standard SelText property.
RulerHandleSpecifies the ruler control to be used as horizontal ruler with a Text Control.
ScrollBarsReturns or sets a value indicating whether a Text Control has horizontal or vertical scroll bars.
ScrollPosXSpecifies the position of the horizontal scroll bar in twips.
ScrollPosYSpecifies the position of the vertical scroll bar in twips.
SectionAtInputPosReturns the number of the section containing the current text input position.
SectionBreakKindReturns or sets the kind of the section break the section starts with.
SectionCountReturns the number of sections, the document contains.
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.
SectionLengthGets the number of characters in the section.
SectionRestartPageNumberingReturns or sets a value specifying whether page numbering is restarted at the beginning of a document section.
SectionStartGets the number (one-based) of the section's first character.
SelectionViewModeSpecifies whether text selections are displayed with a transparent bitmap or through inverting the text.
SelectObjectsSpecifies a value controlling the selection of objects such as images and textframes which are inserted behind the text.
SelLengthReturns or sets the number of characters selected.
SelStartReturns or sets the starting point of text selected or indicates the position of the insertion point if no text is selected.
SelTextReturns or sets the string containing the currently selected text.
SignatureFieldSignerDataDefines info data of a suggested signer.
SizeModeSpecifies whether the Text Control can be moved or resized at run time.
StatusBarHandleSpecifies the status bar control to be used with a Text Control.
StyleCurrentReturns 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.
StylesReturns a collection of all formatting styles in a document.
SupportedFontsThis property returns a string specifying the names of all available fonts.
TabCurrentSpecifies the current tab number for the properties TabPos and TabType.
TabKeyDetermines if the keyboard's tab key moves the input focus to the next control or to insert tabulators in the Text Control's text.
TableAtInputPosReturns the table identifier of the table containing the input position.
TableCanChangeAttrThis property provides information about whether the attributes of all the selected table cells can be altered.
TableCanDeleteColumnThis property provides information about whether table columns can be deleted.
TableCanDeleteLinesThis property provides information about whether table lines can be deleted.
TableCanInsertThis property provides information about whether a table can be inserted.
TableCanInsertColumnThis property provides information about whether a table column can be inserted.
TableCanInsertLinesThis property provides information about whether table lines can be inserted.
TableCanMergeCellsThis property provides information about whether table cells can be merged.
TableCanSplitChecks whether a table can be split.
TableCanSplitCellsThis property provides information about whether table cells can be split.
TableCellAttributeReturns or sets attributes of a table cell.
TableCellDataReturns or sets a string associated with the specified table cell.
TableCellFormulaReturns or sets the table cell's formula.
TableCellLengthReturns the number of characters in a table cell.
TableCellNumberFormatReturns or sets a number format for the table cell.
TableCellStartReturns the character index (one-based) of the first character in a table cell.
TableCellTextReturns or sets the text of a table cell.
TableCellTextTypeReturns or sets the text type of the table cell which determines whether the cell's text is interpreted as a number or as text.
TableColAtInputPosReturns the number of the current input column in a table.
TableColumnsInforms about the number of columns a specified table contains.
TableDescriptiveTextDefines a descriptive text for a table.
TableGridLinesThis property determines whether or not grid lines in tables are visible.
TableNestedLevelGets the nested level for the specified table.
TableRowAtInputPosReturns the number of the current input row in a table.
TableRowsInforms about the number of rows a specified table contains.
TabPosDetermines the position, in twips, of a certain tab.
TabTypeDetermines the type of a certain tab.
TargetAtInputPosReturns the target identifier of the target at the current text input position.
TargetDataThis property relates numeric or string data to a link target.
TargetNameReturns or sets the name of a link target.
TargetPosReturns the position of a target.
TargetStartReturns the target's character index, one-based, in the document.
TextReturns or sets the complete text of a Text Control.
TextBkColorReturns or sets the background color for selected text.
TextDirectionSpecifies the writing direction.
TextFrameBackColorReturns or sets the background color of a text frame.
TextFrameBorderWidthSpecifies the width, in twips, of a text frame's border line.
TextFrameInternalMarginSpecifies the distance (in twips) between a text frame's border line and the text.
TextFrameMarkerLinesThis property determines whether or not marker lines for text frames are visible.
TrackedChangeEndReturns the index (one-based) of the last character of the specified tracked change.
TrackedChangeKindReturns the kind of tracked change.
TrackedChangeStartReturns the index (one-based) of the first character of the specified tracked change.
TrackedChangeTimeReturns the date and time when the change has been made.
TrackedChangeUserNameReturns the name of the user who has changed the document.
UserNamesGets or sets a list of names specifying users who have access to a document.
VerticalRulerHandleSpecifies the ruler control to be used as vertical ruler with a Text Control.
ViewModeReturns or sets the mode in which Text Control displays its text contents.
WidowOrphanLinesGets or sets the number of lines for widow/orphan control.
WordWrapModeThis property returns or sets the mode how Text Control handles word wrapping in lines without space or other word breaking characters.
XMLEditModeSpecifies whether Text Control operates in an edit mode that validates the XML document according to the document's DTD.
XMLElementsReturns a collection of all XML elements with the same tag name.
ZoomFactorSpecifies the zoom factor for a Text Control.

Methods

MethodDescription
AppendAppends text in a certain format from a file and inserts it at the end of the current document.
AppendFromMemoryAppends text in a certain format from a buffer and inserts it at the end of the current document.
ChangeCapitalizationChanges the capitalization of all selected characters depending on the Option parameter.
ChangeTextDirectionChanges the text direction of all selected paragraphs.
ClipPerforms Text Control clipboard actions.
CommentDeleteThis method removes a comment from the document.
CommentEditThis method opens a comment input control which the end-user can use to edit to the specified comment.
CommentGetRepliedGets the comment for which the specified comment is a reply.
CommentInsertThis method opens a comment input control which the end-user can use to insert a new comment in the document.
CommentNextThis method returns the identifier of the comment that follows the specified comment in the Text Control's current text.
CommentReplyThis method opens a comment input control which the end-user can use to reply to the specified comment.
DecreaseIndentDecreases the left indent of all paragraphs contained in the current text selection.
EditableRegionDeleteThis method can be used to delete an editable region from the document.
EditableRegionGotoSets 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.
EditableRegionInsertThis method inserts a new editable region in the text.
EnableAutomationServerEnables a Text Control to work as an automation server.
EndUndoActionDefines the end of an undo action.
FieldDeleteDeletes the marked text field specified by the FieldCurrent property, or changes it to simple text.
FieldGotoSets 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.
FieldInsertInserts a new marked text field at the current caret position.
FieldNextThis method returns the identifier of the marked text field that follows the specified field in the Text Control's current text.
FieldSetInputPosIf 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.
FindSearches the text in a Text Control for a given string.
FindReplaceDisplays a 'Find' or 'Replace' dialog box.
FontDialogInvokes the Text Control's built-in font dialog box and, after the user has closed the dialog box, specifies whether he has changed something.
FootnoteDeleteThis method removes a footnote from the document.
FootnoteEditSets 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.
FootnoteGotoSets 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.
FootnoteInsertThis method adds a new footnote to the document at the current text input position.
FootnoteNextThis method returns the identifier of the footnote that follows the specified footnote in the Text Control's current text.
FormCheckBoxInsertThis method inserts a checkbox field into the document at the current text input position.
FormComboBoxInsertThis method inserts a combobox into the document at the current text input position.
FormDateFieldInsertThis method inserts a date field into the document at the current text input position.
FormDropDownListInsertThis method inserts a dropdown list into the document at the current text input position.
FormFieldDialogThis method opens a built-in dialog box to set formatting attributes for the specified form field.
FormTextFieldInsertThis method inserts a text input field for a form into the document at the current text input position.
GetBaseLinePosReturns the baseline position of the specified line.
GetCaretRectReturns the rectangular area covered by the caret which indicates the current text input position.
GetCharFromLineReturns the position of a line's first character.
GetCharRectReturns the rectangular area covered by a certain character.
GetLineCountReturns the number of text lines in a Text Control.
GetLineFromCharReturns the index of the line which contains the character with the specified character position.
GetLineFromPointReturns the index of the line which contains a given point.
GetLineRectReturns the rectangular area covered by a line of text.
GetTextExtentReturns the extension of the complete text in twips.
GrowFontIncreases the font size of each font contained in the current text selection.
HeaderFooterActivateActivates or deactivates a header or footer.
HeaderFooterSelectThis method determines whether a certain Text Control property or method manipulates a header or a footer or the main text.
ImageInsertThis method inserts a new image anchored to a paragraph.
ImageInsertAsCharThis method inserts a new image which is then handled like a single character in the text.
ImageInsertFixedThis method inserts a new image at a fixed geometrical position.
IncreaseIndentIncreases the left indent of all paragraphs contained in the current text selection.
InputPosFromPointReturns the text input position belonging to a certain geometric position.
InsertSymbolDialogOpens a modeless dialog box which can be used to insert symbol characters.
ListAttrDialogInvokes the Text Control's built-in dialog box for setting attributes of bulleted and numbered lists.
LoadLoads text in a certain format from a file and inserts it into the Text Control.
LoadDialogOpens the system 'Open' dialogbox and loads a document as specified.
LoadFromMemoryLoads text in a certain format from a buffer and inserts it into the Text Control.
LocaleDialogInvokes the Text Control's built-in language dialog box and, after the user has closed the dialog box, specifies whether he has changed something.
MisspelledWordDeleteRemoves the specified misspelled word from a Text Control document.
ObjectAttrDialogThis method invokes the built-in dialog box for setting attributes of images, text frames and OLE objects.
ObjectChangeZOrderChanges the z-order of an image, text frame, signature field or OLE object.
ObjectDeleteThis method deletes an image, text frame, signature field or OLE object.
ObjectGetFromNameLooks for the object with the specified name.
ObjectGetFromUserIdLooks for the object with the specified user identifier.
ObjectGetSelectedThis method returns the identifier of the currently selected object.
ObjectInsertThis method inserts a new OLE object or other control anchored to a paragraph.
ObjectInsertAsCharThis method inserts a new OLE object or other control which is then handled like a single character in the text.
ObjectInsertFixedThis method inserts a new OLE object or other control at a fixed geometrical position.
ObjectNextThis method returns the identifier of the object that follows the specified object in a Text Control's internal list of objects.
PageNumberDialogThis method opens a built-in dialog box to set formatting attributes for the specified pagenumber field.
PageSelectThis method can be used to select the specified page.
ParagraphDialogInvokes 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.
ParagraphSelectThis method can be used to select the specified paragraph.
PasteReplaces the current selection in the Text Control with the contents of the Clipboard.
PrintDialogOpens the system printing dialog and prints a Text Control document as specified through the dialog.
PrintDocPrints a Text Control document or a part of a Text Control document on the default printer.
PrintPagePrints a page of text on the default printer.
RedoThis method can be used to redo the last Text Control operation.
RefreshThis method forces a complete repaint of a Text Control.
ResetContentsDeletes the complete contents of a Text Control including tables, objects, marked text fields and headers and footers.
SaveSaves data in a file with a specified format.
SaveDialogOpens the system 'Save As' dialogbox and saves a document as specified.
SaveToMemoryReturns a one-dimensional byte array containing text data in a specified format.
SaveToMemoryBufferReturns a buffer containing text data in a specified format.
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.
SectionInsertInserts a section break at the text input position or at a specified position.
SectionSelectThis method can be used to select the specified section.
ShrinkFontDecreases the font size of each font contained in the current text selection.
SignatureFieldInsertThis method inserts a new signature field anchored to a paragraph.
SignatureFieldInsertAsCharThis method inserts a new signature field, which is then handled as a single character in the text.
SignatureFieldInsertFixedThis method inserts a new signature field at a fixed geometrical position.
StartUndoActionDefines the beginning of an undo action.
StyleDialogInvokes the Text Control's built-in dialog box for creating, deleting and modifying formatting styles.
TabDialogInvokes the Text Control's built-in dialog box for setting tabs.
TableAttrDialogThis 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.
TableCellSelectThis method can be used to select a table cell, a table row, a table column or a complete table.
TableDeleteThis method can be used to delete a complete table from the document.
TableDeleteColumnThis method deletes the currently selected table columns or the table column containing the text input position.
TableDeleteLinesThis method deletes the currently selected table lines or the table line at the current input position.
TableFromSelectionThis method returns the table identifier of the currently selected table.
TableGetOuterThis method returns a table's outer table.
TableGetOuterMostThis method returns a table's outermost table.
TableInsertThis method inserts a new table in the text.
TableInsertColumnThis method inserts a table column left or right of the column with the current input position.
TableInsertDialogThis method opens a built-in dialog box which offers options to define a new table.
TableInsertLinesThis member function inserts table lines above or below the table line with the current input position.
TableMergeCellsThis method merges all selected table cells.
TableNextThis method returns a enumeration number of the table that follows the specified table in the Text Control's current text.
TableOfContentsDeleteThis method can be used to delete a table of contents.
TableOfContentsDialogInvokes the built-in dialog box for inserting or changing a table of contents.
TableOfContentsUpdateThis method can be used to update the content and the page numbers of a table of contents.
TableSelectCellsThis method can be used to select a rectangular part of a table defined through two table cells.
TableSplitSplits a table below or above the current input position.
TableSplitCellsThis method splits all selected table cells.
TargetDeleteThis method can be used to delete a link target or bookmark from the document.
TargetGotoSets 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.
TargetInsertThis method inserts a new link target or bookmark in the text at the current text input position.
TargetNextThis method returns the identifier of the link target that follows the specified target in the Text Control's current text.
TextFrameInsertThis method inserts a new text frame anchored to a paragraph.
TextFrameInsertAsCharThis method inserts a new text frame, which is then handled as a single character in the text.
TextFrameInsertFixedThis method inserts a new text frame at a fixed geometrical position.
TextFrameSelectThis method determines whether a certain Text Control property or method manipulates a text frame or the main text.
TrackedChangeDeleteThis method removes a tracked change from the document.
TrackedChangeNextThis method returns the identifier of the tracked change that follows the specified tracked change in the Text Control's current text.
UndoThis method can be used to undo the last Text Control operation.
ZoomZooms the contents of the TextControl using the specified option.

Events

EventDescription
AutoScrollThis event occurs when the cursor leaves the visible portion of a Text Control's client area while a text selection is being expanded with the mouse.
CannotTrackChangeDetermines how to handle a change of the document that cannot be added to the list of tracked changes.
CaretOutOccurs when the current input position indicated through the caret has been moved to a control that is completely out of the visible area.
CaretOutBottomOccurs when the current input position indicated through the caret has been moved out of the visible area at the bottom.
CaretOutLeftOccurs when the current input position indicated through the caret has been moved out of the visible area at the left side.
CaretOutRightOccurs when the current input position indicated through the caret has been moved out of the visible area at the right side.
CaretOutTopOccurs when the current input position indicated through the caret has been moved out of the visible area at the top.
ChangeIndicates that the contents of a Text Control have changed.
CharFormatChangeOccurs when the formatting attributes of the selected characters have been changed.
ClickOccurs when the user presses and then releases a mouse button over a Text Control.
CommentChangedOccurs when the text of a comment has been changed.
CommentCreatedOccurs when a comment has been created.
CommentDeletedOccurs when a comment has been deleted.
CommentedTextEnteredOccurs when the current input position indicated by the caret has been moved to a position that belongs to a commented piece of text.
CommentedTextLeftOccurs when the current input position indicated by the caret has left a commented piece of text.
ConnectToolsMS Access only: Occurs after all Text Controls, Rulers, Button Bars and Status Bars have been created and are ready to be connected.
ContextMenuOpeningOccurs before a built-in context menu is opened.
DblClickOccurs when the user presses and releases a mouse button and then presses and releases it again over a Text Control.
EditableRegionEnteredOccurs when the current input position has been moved to a position that belongs to an editable region.
EditableRegionLeftOccurs when the current input position has left an editable region.
ErrorOccurs when the Text Control reports an error.
FieldChangedOccurs when the text of a marked text field has been changed.
FieldClickedOccurs when a marked text field has been clicked on.
FieldCreatedOccurs when a marked text field has been pasted from the clipboard.
FieldDblClickedOccurs when a marked text field has been double-clicked on.
FieldDeletedOccurs when a marked text field has been deleted.
FieldEnteredOccurs when the current input position, indicated by the caret, has been moved to a position that belongs to a marked text field.
FieldLeftOccurs 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.
FieldLinkClickedOccurs when a marked text field has been clicked on that represents the source of a hypertext link.
FieldSetCursorOccurs when the cursor is moved over a marked text field.
FootnoteCreatedOccurs when a footnote has been created.
FootnoteDeletedOccurs when a footnote has been deleted.
FootnoteReferenceMarkEnteredOccurs when the current input position has been moved to the position of a footnote reference mark.
FootnoteReferenceMarkLeftOccurs when the current input position has left the position of a footnote reference mark.
FootnoteSectionActivatedOccurs when the footnote section of a document's page gets the current text input position from another part of the document.
FootnoteSectionDeactivatedOccurs when the footnote section of a document's page has lost the current text input position.
FormCheckStateChangedOccurs when the check state of a checkbox has been changed.
FormDateChangedOccurs after the date of a date formfield has been changed.
FormFieldTextChangedOccurs after the text of a text formfield has been changed.
FormSelectedItemChangedOccurs after the selected item of a combobox or a dropdown list has been changed.
HeaderFooterActivatedOccurs when a header or footer has been activated.
HeaderFooterDeactivatedOccurs when a header or footer has been deactivated.
HExpandOccurs when the Text Control has changed its window size horizontally.
HScrollOccurs when the horizontal scroll position has been changed.
KeyDownOccurs when the user presses a key while the Text Control has the input focus.
KeyPressOccurs when the user presses and releases an ANSI key while the Text Control has the input focus.
KeyStateChangeOccurs when the character insertion mode or when the state of the NUMLOCK or CAPSLOCK key has been changed.
KeyUpOccurs when the user releases a key while the Text Control has the input focus.
MouseDownOccurs when the user presses a mouse button.
MouseMoveOccurs when the user moves the mouse.
MouseUpOccurs when the user releases a mouse button.
MoveOccurs when a Text Control has been moved with the mouse.
ObjectClickedOccurs when an object has been clicked on.
ObjectCreatedThis event specifies that a new object has been created.
ObjectDblClickedOccurs when an object has been double-clicked on.
ObjectDeletedOccurs when an object has been deleted.
ObjectGetDataOccurs when a document which contains objects, is saved.
ObjectGethWndOccurs when a document which contains objects, is loaded.
ObjectGetZoomOccurs when an object's zoom factor is requested.
ObjectMovedOccurs if an image, text frame, signature field or OLE object has been moved with the built-in mouse interface.
ObjectPrintOccurs when a document containing objects is printed.
ObjectRightClickedOccurs when an object has been clicked on with the right mouse button.
ObjectScrollOutOccurs when an object is scrolled out of the visible area.
ObjectSetDataOccurs when a document which contains objects, is loaded.
ObjectSetZoomOccurs when an object's zoom factor is to be changed.
ObjectSizedOccurs if an image, text frame, signature field or OLE object has been resized with the built-in mouse interface.
PageChangedOccurs when the text input position has been moved to another page.
PageFormatChangeOccurs when the page format settings have been changed.
ParagraphChangeOccurs when the character input position has been moved to another paragraph.
ParagraphFormatChangeOccurs when the paragraph attributes of the selected paragraphs have been changed.
PosChangeOccurs when the current character input position has been changed.
SectionChangedOccurs when the text input position has been moved to another section.
SizeOccurs when a Text Control has been resized with the mouse.
SpellCheckTextOccurs, if the document's text has been altered and the spelling of the new text must be checked.
StyleChangedOccurs after the character input position has been moved to a text part formatted with another style.
StyleListChangedOccurs after one or more formatting styles have been added or removed.
TableCreatedOccurs after a new table has been created as a result of a text insertion via the clipboard.
TableDeletedOccurs after a table has been deleted.
TableFormatChangedOccurs after a table has been formatted with the built-in mouse-interface.
TableOfContentsCreatedOccurs when a table of contents has been created.
TableOfContentsDeletedOccurs when a table of contents has been deleted.
TableOfContentsEnteredOccurs when the current text input position has been moved to a position that belongs to a table of contents.
TableOfContentsLeftOccurs when the current text input position has left a table of contents.
TargetCreatedOccurs when a link target or bookmark has been created.
TargetDeletedOccurs when a link target or bookmark has been deleted.
TextFrameActivatedOccurs when a text frame has obtained the input focus.
TextFrameDeactivatedOccurs when a text frame has lost the input focus.
TrackedChangeChangedOccurs when the text of a tracked change has been altered.
TrackedChangeCreatedOccurs when a tracked change has been created.
TrackedChangeDeletedOccurs when a tracked change has been deleted.
VExpandOccurs when the Text Control has changed its window size vertically.
VScrollOccurs when the vertical scroll position has been changed.
XMLInvalidOccurs when a loaded XML document cannot be validated with the document type definition (DTD) referenced in the document.
XMLNotWellFormedOccurs when a loaded XML document is not well-formed.
ZoomedOccurs when the Text Control has been zoomed.

See Also