TX Text Control .NET for WPF

TextControl Class

Class|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.WPF.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.WPF.dll from the setup.
Inherits
  1. Control
  2. TextControl
Implements
INotifyPropertyChanged, IFormattedText

Description

The WPF.TextControl class class implements a control with high-level text editing features. It is inherited from the System.Windows.Controls.Control class. The following describes only the properties, methods and events defined through this class. For a list of inherited properties, methods and events see the .NET Framework reference. The WPF.TextControl class implements the IFormattedText interface.

Syntax

public class TextControl : Control, INotifyPropertyChanged, IFormattedText

Examples

The following example creates a Text Control instance and configures its accepts tab setting for a document workflow.

TXTextControl.WPF.TextControl textControl = new();
textControl.AcceptsTab = true;

Members

Constructors

ConstructorDescription
TextControlInitializes a new instance of the WPF.TextControl class.

Properties

PropertyDescription
AcceptsTabGets or sets a value indicating whether pressing the TAB key types a TAB character in the control instead of moving the focus to the next control in the tab order. This is a dependency property.
AllowDragGets or sets a value indicating whether the control can be a source of a Drag&Drop operation. To allow the control to accept data that the user drags onto it, the AllowDrop property must be set to true.
AllowDropInherited from System.Windows.UIElement. Gets or sets a value indicating whether the control can accept data that the user drags onto it. This property allows the control to be a target for drop operations. To allow the control to be a source of a Drag&Drop operation the AllowDrag property must be set to true. The DropFormats property determines which formats the control accepts automatically.
ApplicationFieldsGets a collection of all application fields contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. Application fields are Microsoft Word or Heiler HighEdit fields that have been created or imported from a Microsoft Word or RTF document. The property value is an object of the type ApplicationFieldCollection. Before loading a document the LoadSettings.ApplicationFieldFormat property must be set, otherwise this collection is empty. The collection contains the fields of the text part with the input focus. This can be the main text, a text frame or a header or footer.
AutoControlSizeGets or sets values that enable automatic expansion or shrinking of a Text Control's width or height depending on the currently contained text. These features are only possible, if the ViewMode property has been set to SimpleControl. The property value is an object of the type AutoSize.
BarcodesGets a collection of all barcodes contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property value is an object of the type DataVisualization.BarcodeCollection. The collection can be used to get or to alter a barcode's attributes and to add barcodes to or to remove barcodes from a document.
BaselineGets or sets the baseline alignment, in twips, of the Text Control. Positive values moves the baseline to superscript, negative values moves the baseline to subscript.
BorderThicknessGets or sets the border thickness of the Text Control. Four double values, in device-independent units (1/96th inch), describe the left, top, right, and bottom sides of the border, respectively. If only a single measure is specified, that measure is applied to all of the left, top, right, bottom values of a Thickness. If only a pair of left,top measures are specified, these measures are applied symmetrically to a Thickness: the left value is used for right; the top value is used for bottom. This is a dependency property.
ButtonBarSpecifies the button bar control to be used with a TextControl. The property value is an empty string, if there is no button bar connected. Otherwise it must be the name of an existing WPF.ButtonBar object.
CanCharacterFormatInforms whether the currently selected text can be formatted with character formatting attributes. The property's value depends on the DocumentPermissions.AllowFormatting property and the currently set edit mode.
CanCopyInforms whether a part of a Text Control document has been selected and can be copied to the clipboard. The property's value also depends on the DocumentPermissions.AllowCopy property and the currently set edit mode.
CanDocumentFormatInforms whether the document can be formatted with page and section formatting attributes. The property's value depends on the DocumentPermissions.AllowFormatting property and the currently set edit mode.
CanEditInforms whether the document's text and/or formatting attributes can be changed. The property's value depends on the DocumentPermissions.ReadOnly property and the currently set edit mode.
CanEditFormFieldsInforms whether form fields can be edited. The property's value depends on the DocumentPermissions.AllowEditingFormFields property and the currently set edit mode.
CanParagraphFormatInforms whether the currently selected text can be formatted with paragraph formatting attributes. The property's value depends on the DocumentPermissions.AllowFormatting property and the currently set edit mode.
CanPasteInforms whether the clipboard contains a format that can be pasted into a Text Control document. The property's value also depends on the DocumentPermissions.ReadOnly property and the currently set edit mode.
CanPrintInforms whether the document can be printed. The property's value depends on the DocumentPermissions.AllowPrinting property and the currently set edit mode.
CanRedoInforms whether an operation can be re-done using the Redo method.
CanStyleFormatInforms whether the document can be formatted with formatting styles. The property's value depends on the DocumentPermissions.AllowFormattingStyles property and the currently set edit mode.
CanTableFormatInforms whether the currently selected text can be formatted with table formatting attributes. The property's value depends on the DocumentPermissions.AllowFormatting property and the currently set edit mode.
CanUndoGets a value indicating whether the user can undo the previous operation in a Text Control.
CaretWidthGets or sets the width of the caret in pixels. If this property is zero, the width is set to its default value which is the system-defined window border width.
CommentHighlightModeGets or sets a value indicating whether all the commented texts in the document are highlighted.
CommentsGets a collection of all comments contained in the text part with the input focus. The property's value is an object of the type CommentCollection.
ControlCharsSpecifies if control characters are visible or not. This is a dependency property.
DefaultFormattingPrinterNot described in the reference. public static string DefaultFormattingPrinter { get; set; }
DialogUnitGets or sets a value indicating the measuring unit used for sizes and distances in dialogboxes.
DisplayColorsGets or sets the colors of the text control. The property value is an object of the type WPF.TextControlColors.
DocumentLinksGets a collection of all document links contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. Document links point to targets in the same document. The property value is an object of the type DocumentLinkCollection.
DocumentPermissionsGets a DocumentPermissions object which provides properties determining how a document can be edited and formatted when the EditMode property is set to EditMode.ReadAndSelect.
DocumentSettingsGets a DocumentSettings object providing properties which inform about general document settings, such as author and title, contained in the document the user is currently working on. When a document is loaded this object is filled with such information and all values are automatically stored when the document is saved.
DocumentTargetMarkersGets or sets a value indicating that markers for hypertext targets are shown or not. This is a dependency property.
DocumentTargetsGets a collection of all targets contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property value is an object of the type DocumentTargetCollection.
DrawingMarkerLinesSpecifies whether a marker frame is shown around a drawing to indicate its position and size. This is a dependency property.
DrawingsGets a collection of all drawings contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property value is an object of the type DataVisualization.DrawingCollection. The collection can be used to get or to alter a drawing's attributes and to add drawings to or to remove drawings from a document.
DropFormatsGets or sets the formats of data the control can accept when the user drags it onto the control. The property's value can be a bitwise OR combination of the values listed below. The bitwise AND operator can be used to test for a given format.
EditableRegionHighlightModeGets or sets a value indicating whether all the editable regions in the document are highlighted. The value of this property is only used if the highlight mode of a certain editable region is set to HighlightMode.Auto.
EditableRegionsGets a collection of all editable regions contained in the document. The property's value is an object of the type EditableRegionCollection.
EditModeGets or sets a value indicating whether text in the Text Control is read-only, can be selected or is editable.
EntryAssemblySets main project assembly which licenses a WPF.TextControl. By default, this is the application's executable assembly.
FieldCursorGets or sets the cursor that is displayed when the mouse pointer is over a marked text field.
FontFamilyGets or sets the font family of the text control. This is a dependency property. The property value has the type System.Windows.Media.FontFamily.
FontSettingsGets a FontSettings object which provides properties determining which fonts can be used in a document.
FontSizeGets or sets the font size of the text control in device-independent units (1/96th inch). This is a dependency property.
FontStyleGets or sets the font style of the text control. This is a dependency property. The property value has the type System.Windows.FontStyle. The default value is FontStyles.Normal.
FontUnderlineStyleGets or sets the underlining style for the text displayed by the control.
FontWeightGets or sets the weight or thickness of the text control's font. This is a dependency property. The property value has the type System.Windows.FontWeight. The default value is FontWeights.Normal.
FootnotesGets a collection of all footnotes contained in the main text of the document. The property value is an object of the type FootnoteCollection.
FormattingPrinterGets or sets the name of a printer the text dimensions and capabilities of which are used to format the document. If the document is printed with this printer the displayed and the printed document have the same dimensions. If the property is set to Standard, the system installed standard printer is used to format the document. If the property is set to Display, the font dimensions of the display device are used to format the document. If the specified printer is not installed, the standard printer is used.
FormFieldsGets a collection of all form fields contained in the document. The property's value is an object of the type FormFieldCollection.
FormulaReferenceStyleGets or sets a value determining how references to table cells in formulas are specified. Supported are the A1 and the R1C1 notation. The A1 notation specifies a table cell with a column letter and a row number, for example B3 refers to the table cell in the third row and the second column. The R1C1 notation addresses a table cell with a row number and a column number, for example R3C2 refers to the table cell in the third row and the second column. Relative addresses can be expressed with square brackets. R[-3]C[-2]. The numbers inside the square brackets show how many rows or columns the cell is relative to itself. Negative row numbers mean that the referenced cell is above the cell containing the formula. Negative column numbers mean that the referenced cell is to the left of the cell containing the formula.
FramesGets a collection of all images, textframes, barcodes and drawings contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property value is an object of the type FrameCollection. The collection can be used to get or to alter attributes common to all frames.
HeaderFooterActivationStyleGets or sets a value specifying the activation style for headers and footers.
HeaderFooterFrameStyleGets or sets a value specifying the frame for activated headers and footers.
HeadersAndFootersGets a collection of all headers and footers the current document contains. The property's value is an object of the type HeaderFooterCollection.
HideSelectionGets or sets a value indicating whether the selected text in the Text Control remains highlighted when the control loses focus.
HorizontalScrollBarVisibilityGets or sets a value that indicates whether a horizontal scroll bar is shown. The property's value is of the type System.Windows.Controls.ScrollBarVisibility. This is a dependency property.
HypertextLinksGets a collection of all hypertext links contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type HypertextLinkCollection.
ImagesGets a collection of all images contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type ImageCollection.
InlineStylesGets a collection of all inline styles the current document contains. The property's value is an object of the type InlineStyleCollection.
InputFormatGets an object of the type InputFormat which represents all formatting attributes at the current text input position.
InputPositionGets or sets the current text input position. The property's value is an object of the type InputPosition.
InsertionModeSpecifies whether text is inserted or overwrites existing text.
IsFormFieldValidationEnabledGets or sets a value indicating whether Conditional Instructions are applied to form fields when the EditMode property is set to EditMode.ReadAndSelect and TextControl.DocumentPermissions.ReadOnly to true. The default value is false.
IsFormulaCalculationEnabledGets or sets a value indicating whether formulas in tables are automatically calculated when the text of an input cell is changed.
IsHyphenationEnabledGets or sets a value indicating whether hyphenation is active or not. If hyphenation is enabled, a word at the end of a line is automatically divided with a connected spell checking component. A spell checking component can be connected with the SpellChecker property. Additionally, the WPF.TextControl.HyphenateWord event is raised with the calculated divide position. This position can be changed through a connected event handler.
IsLanguageDetectionEnabledGets or sets a value indicating whether language detection is active or not. If language detection is enabled, a language is automatically set for all pieces of text with a neutral language. To use this feature, at least the TXSpell 5.0 spell checking component must be connected with the WPF.TextControl through the SpellChecker property.
IsSpellCheckingEnabledGets or sets a value indicating whether spell checking is active or not. If spell checking is enabled the WPF.TextControl.SpellCheckText event is raised when the text of a document changes. The event handler can be used to check the text on misspelled words.
IsTabStopGets or sets a value that indicates whether a text control is included in tab navigation. This is a dependency property.
IsTrackChangesEnabledGets or sets a value indicating whether track changes is active or not. When this property is true, new changes made to the document are marked up. When this property is false, a TextControl stops marking up new changes. Any changes that were already tracked remain marked up in the document until they were removed.
IsUndoEnabledGets or sets a value indicating whether the undo buffer is active or not. If a Text Control is used for tasks like generating reports it can be useful to deactivate the undo buffer to save time and memory. This is a dependency property.
LandscapeGets or sets a value indicating whether the page orientation is landscape or portrait.
LinesGets a collection of all lines contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type LineCollection.
ListFormatGets or sets the type and the formatting attributes of a bulleted or numbered list. The property value is an object of the type ListFormat. For more information see the description of the ListFormat class.
MisspelledWordsGets a collection of all misspelled words contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type MisspelledWordCollection.
PageMarginsGets or sets the margins for the pages of the current document. The measure depends on the WPF.TextControl.PageUnit property. The default measure is device-independent units (1/96th inch). The property value is an object of the type PageMargins. For more information see the description of the PageMargins class.
PagesGets the number of pages contained in the current document.
PageSizeSpecifies the width and height of the pages for the current document. The measure depends on the WPF.TextControl.PageUnit property. The default measure is device-independent units (1/96th inch). The property value is an object of the type PageSize. For more information see the description of the PageSize class.
PageUnitGets or sets the measure used for page sizes and page margins.
ParagraphFormatGets or sets the paragraph formatting attributes of the text displayed by the control. The property value is an object of the type ParagraphFormat. For more information see the description of the ParagraphFormat class.
ParagraphsGets a collection of all paragraphs contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type ParagraphCollection.
ParagraphStylesGets a collection of all paragraph styles the current document contains. The property's value is an object of the type ParagraphStyleCollection.
PermanentControlCharsGets or sets a value indicating which control characters are shown permanently on the screen. The property's value can be a bitwise OR combination of the PermanentControlChar enumeration. The bitwise AND operator can be used to test for a given value.
RedoActionNameGets a string that represents the name of the action that will be performed when a call to the Redo method is made. The property's value is null if there is no action that can be redone.
RibbonFormattingTabSpecifies the name of the WPF.RibbonFormattingTab object to be used with a TextControl. The elements of the ribbon tab can be used to alter character and paragraph attributes. The property value is an empty string, if there is no ribbon tab connected.
RibbonFormFieldsTabSpecifies the name of the WPF.RibbonFormFieldsTab object to be used with a TextControl. The elements of the ribbon tab can be used to edit form fields. The property value is an empty string, if there is no ribbon tab connected.
RibbonFormulaTabSpecifies the name of the WPF.RibbonFormulaTab object to be used with a TextControl. The elements of the ribbon tab can be used to edit formulas in table cells. The property value is an empty string, if there is no ribbon tab connected.
RibbonFrameLayoutTabSpecifies the name of the WPF.RibbonFrameLayoutTab object to be used with a TextControl. The elements of the ribbon tab can be used to alter attributes of images, text frames, barcodes and drawings. The property value is an empty string, if there is no ribbon tab connected.
RibbonInsertTabSpecifies the name of the WPF.RibbonInsertTab object to be used with a TextControl. The parts of the ribbon tab can be used to insert elements such as illustrations, tables, text frames, hyperlinks and headers and footers. The property value is an empty string, if there is no ribbon tab connected.
RibbonPageLayoutTabSpecifies the name of the WPF.RibbonPageLayoutTab object to be used with a TextControl. The elements of the ribbon tab can be used to set page formatting attributes such as margins, page size, columns and document frames. The property value is an empty string, if there is no ribbon tab connected.
RibbonPermissionsTabSpecifies the name of the WPF.RibbonPermissionsTab object to be used with a TextControl. The elements of the ribbon tab can be used for determining how the document can be edited, when it is enforced to be protected. The property value is an empty string, if there is no ribbon tab connected.
RibbonProofingTabSpecifies the name of the WPF.RibbonProofingTab object to be used with a TextControl. The elements of the ribbon tab can be used to check spelling and hyphenation. The property value is an empty string, if there is no ribbon tab connected.
RibbonReferencesTabSpecifies the name of the WPF.RibbonReferencesTab object to be used with a TextControl. The elements of the ribbon tab can be used to edit form fields. The property value is an empty string, if there is no ribbon tab connected.
RibbonReportingTabSpecifies the name of the WPF.RibbonReportingTab object to be used with a TextControl. The elements of the ribbon tab can be used to integrate mail merge and reporting functionality. The property value is an empty string, if there is no ribbon tab connected.
RibbonTableLayoutTabSpecifies the name of the WPF.RibbonTableLayoutTab object to be used with a TextControl. The elements of the ribbon tab can be used to set the attributes and the layout of a table. The property value is an empty string, if there is no ribbon tab connected.
RibbonViewTabSpecifies the name of the WPF.RibbonViewTab object to be used with a TextControl. The elements of the ribbon tab can be used to alter the document's view. The property value is an empty string, if there is no ribbon tab connected.
RulerBarSpecifies the horizontal ruler bar control to be used with a TextControl. The property value is an empty string, if there is no ruler bar connected. Otherwise it must be the name of an existing WPF.RulerBar object.
ScrollLocationGets or sets the coordinates, in twips, of the upper-left corner of the document's visible part relative to the upper-left corner of the complete document.
SectionsGets a collection of all sections in the document. The property's value is an object of the type SectionCollection.
SelectionGets or sets the current selection in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property value is an object of the type Selection. A selection can be used to assign character and paragraph formatting attributes to a piece of text.
SelectionViewModeSpecifies whether text selections are displayed with a transparent bitmap or through inverting the text.
SelectObjectsGets or sets a value controlling the selection of objects which are inserted behind the text. When the property is set to true, a mouse click selects the object behind the text. Otherwise, when this property is set to false, text in front of the object can be selected.
ShowMiniToolbarGets or sets a value indicating whether a mini-toolbar is shown. A mini-toolbar is a small popup window with formatting options for the current context of the document. The bitwise or operator can be used to combine the values listed below.
SignatureFieldsGets a collection of all signature fields contained in the main text of the document. The property value is an object of the type SignatureFieldCollection.
SpellCheckContextMenuSpecifies the context menu which is used when the end-user right-clicks a misspelled word. A context menu is only available when a spell checking component has been connected with the SpellChecker property.
SpellCheckerSpecifies the spell checking component to be used with a TextControl. The property value must be the key of a resource added to the Resources dictionary of a TextControl or a parent of a TextControl in the logical element tree of the application. The resource key must be a string. Specifying an empty string, a connected spellchecker can be disconnected. When a spell checking component is connected and the IsSpellCheckingEnabled property has been set to true, misspelled words are automatically underlined with a red zigzag line. The SpellCheckDialog method can be used to correct the misspelled words contained in the document. When a spell checking component is connected and the IsHyphenationEnabled property has been set to true, a document is automatically hyphenated. If the IsLanguageDetectionEnabled property has been set to true, a language is automatically detected for all text parts with a neutral language.
StatusBarSpecifies the status bar control to be used with a TextControl. The property value is an empty string, if there is no status bar connected. Otherwise it must be the name of an existing WPF.StatusBar object.
SubTextPartsGets a collection of all subtextparts contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type SubTextPartCollection.
TabIndexGets or sets the tab index of the text control.
TablesGets a collection of all tables contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type TableCollection.
TablesOfContentsGets a collection of all tables of contents in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type TableOfContentsCollection.
TextGets or sets the text contents of the text control.
TextCharsGets a collection of all characters contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type TextCharCollection.
TextFieldsGets a collection of all standard text fields contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type TextFieldCollection.
TextFrameMarkerLinesSpecifies whether text frames that have no border line are shown with marker lines. This is a dependency property.
TextFramesGets a collection of all text frames contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type TextFrameCollection. If a text frame contains further text frames, the inner frames are not contained in this collection.
TextPartsGets a collection of all main text parts the current document contains. The property's value is an object of the type TextPartCollection. The main text parts are the main text, text frames and headers and footers.
TrackedChangesGets a collection of all changes made in the active part of the document. The property's value is an object of the type TrackedChangeCollection.
UndoActionNameGets a string that represents the name of the action that will be performed when a call to the Undo method is made. The property's value is null if there is no action that can be undone.
UserNamesGets or sets a list of names specifying users who have access to editable regions. When a document is set to read-only all editable regions that are related to these users can be edited.
VerticalRulerBarSpecifies the vertical ruler bar control to be used with a TextControl. The property value is an empty string, if there is no ruler bar connected. Otherwise it must be the name of an existing WPF.RulerBar object.
VerticalScrollBarVisibilityGets or sets a value that indicates whether a vertical scroll bar is shown. The property's value is of the type System.Windows.Controls.ScrollBarVisibility. This is a dependency property.
ViewModeGets or sets the mode how Text Control displays a document.
XmlEditModeGets or sets a value specifying whether Text Control operates in an edit mode that validates the XML document according to the document's DTD.
ZoomFactorGets or sets the zoom factor, in percent, for a Text Control. This is a dependency property.

Methods

MethodDescription
AddSymbolDialogInvokes a built-in dialog box for inserting symbol characters.
AppendLoads text in a certain format from a file, a byte array or a string and appends it to the existing document.
BarcodeLayoutDialogInvokes the built-in dialog box for alter the layout settings, the size and the text distances of a barcode. This dialog can only be invoked, if a barcode has been selected.
BeginUndoActionBegins a user-defined undo operation. All editing and fomatting changes made between BeginUndoAction and EndUndoAction belong to the undo operation. These changes are undone or redone in a single step. The specified user-defined name is available with the UndoActionName property.
ClearClears the selected text or the character right from the current input position from the Text Control.
ClearUndoClears the undo buffer of the Text Control.
ConditionalInstructionDialogOpens a dialog box to create or edit a Conditional Instruction.
CopyCopies the current selection in the Text Control to the Clipboard.
CutMoves the current selection in the Text Control to the Clipboard.
DrawingLayoutDialogInvokes the built-in dialog box for alter the layout settings, the size and the text distances of a drawing. This dialog can only be invoked, if a drawing has been selected.
EndUndoActionEnds a user-defined undo operation. All editing and fomatting changes made between BeginUndoAction and EndUndoAction belong to the undo operation. These changes are undone or redone in a single step.
FindFinds a text string in the text part with the input focus. This can be the main text, a text frame or a header or footer.
FontDialogInvokes the built-in dialog box for setting fonts and character attributes.
ForeColorDialogInvokes the built-in dialog box for setting the text color.
FormattingStylesDialogInvokes the built-in dialog box for creating, deleting and modifying formatting styles.
FrameFillColorDialogInvokes the built-in dialog box for choosing a color for the background of a paragraph or a table cell.
FrameLineColorDialogInvokes the built-in dialog box for choosing a color for the frame of a paragraph or a table.
GetClipboardFormatsReturns an array of ClipboardFormat values. These values specify all the data formats which are currently available in the clipboard and which can be pasted into a document. If there is no data format available, this method returns null.
GetPagesGets a collection of all pages in the document. The property's value is an object of the type PageCollection. This collection is only available, if the property has been set to ViewMode.PageView. Otherwise, the method returns null.
GetSupportedFontsGets an array of strings specifying the names of all currently supported fonts. These fonts depend on the formatting device set with the WPF.TextControl.FormattingPrinter property. The method returns null if the WPF.TextControl has not been completely initialized.
GetSupportedPaperSizesGets an array of PaperSize structures specifying the names and the size of all currently supported paper sizes. These paper sizes depend on the formatting device set with the WPF.TextControl.FormattingPrinter property.
GetTextFieldsReturns a collection containing text fields of the specified types.
GetVersionInfoReturns an object of the type VersionInfo, which provides information about the installed TX Text Control version.
GetXmlElementsReturns a collection of XML elements. It is an object of the type XmlElementCollection.
ImageAttributesDialogInvokes the built-in dialog box for setting attributes of images. This dialog box is only shown, if an image is currently selected. The ImageCollection.GetItem method can be used to test whether an image is selected or not.
LanguageDialogInvokes the built-in dialog box for setting the language of the selected text.
ListFormatDialogInvokes the built-in dialog box for setting formatting attributes of bulleted and numbered lists.
LoadLoads text in a certain format. The complete contents of a Text Control are replaced.
ManageConditionalInstructionsDialogOpens a dialog box to add, edit or delete Conditional Instructions inside the document.
OnAdaptFontRaises the AdaptFont event.
OnBarcodeClickedRaises the BarcodeClicked event.
OnBarcodeCreatedRaises the BarcodeCreated event.
OnBarcodeDeletedRaises the BarcodeDeleted event.
OnBarcodeDeselectedRaises the BarcodeDeselected event.
OnBarcodeDoubleClickedRaises the BarcodeDoubleClicked event.
OnBarcodeMovedRaises the BarcodeMoved event.
OnBarcodeRightClickedRaises the BarcodeRightClicked event.
OnBarcodeSelectedRaises the BarcodeSelected event.
OnBarcodeSizedRaises the BarcodeSized event.
OnCannotTrackChangeRaises the CannotTrackChange event.
OnChangedRaises the Changed event.
OnCharFormatChangedRaises the CharFormatChanged event.
OnCommentChangedRaises the CommentChanged event.
OnCommentCreatedRaises the CommentCreated event.
OnCommentDeletedRaises the CommentDeleted event.
OnCommentedTextEnteredRaises the CommentedTextEntered event.
OnCommentedTextLeftRaises the CommentedTextLeft event.
OnCommentStateChangedRaises the CommentStateChanged event.
OnContentsResetRaises the ContentsReset event.
OnDocumentLinkClickedRaises the DocumentLinkClicked event.
OnDocumentLoadedRaises the DocumentLoaded event.
OnDocumentTargetCreatedRaises the DocumentTargetCreated event.
OnDocumentTargetDeletedRaises the DocumentTargetDeleted event.
OnDrawingActivatedRaises the DrawingActivated event.
OnDrawingClickedRaises the DrawingClicked event.
OnDrawingCreatedRaises the DrawingCreated event.
OnDrawingDeactivatedRaises the DrawingDeactivated event.
OnDrawingDeletedRaises the DrawingDeleted event.
OnDrawingDeselectedRaises the DrawingDeselected event.
OnDrawingDoubleClickedRaises the DrawingDoubleClicked event.
OnDrawingMovedRaises the DrawingMoved event.
OnDrawingRightClickedRaises the DrawingRightClicked event.
OnDrawingSelectedRaises the DrawingSelected event.
OnDrawingSizedRaises the DrawingSized event.
OnEditableRegionCreatedRaises the EditableRegionCreated event.
OnEditableRegionDeletedRaises the EditableRegionDeleted event.
OnEditableRegionEnteredRaises the EditableRegionEntered event.
OnEditableRegionLeftRaises the EditableRegionLeft event.
OnFootnoteCreatedRaises the FootnoteCreated event.
OnFootnoteDeletedRaises the FootnoteDeleted event.
OnFootnoteReferenceMarkEnteredRaises the FootnoteReferenceMarkEntered event.
OnFootnoteReferenceMarkLeftRaises the FootnoteReferenceMarkLeft event.
OnFootnoteSectionActivatedRaises the FootnoteSectionActivated event.
OnFootnoteSectionDeactivatedRaises the FootnoteSectionDeactivated event.
OnFormattingStyleChangedRaises the FormattingStyleChanged event.
OnFormattingStyleListChangedRaises the FormattingStyleListChanged event.
OnFormFieldCheckChangedRaises the FormFieldCheckChanged event.
OnFormFieldDateChangedRaises the FormFieldDateChanged event.
OnFormFieldSelectionChangedRaises the FormFieldSelectionChanged event.
OnFormFieldSettingsChangedRaises the FormFieldSettingsChanged event.
OnFormFieldTextChangedRaises the FormFieldTextChanged event.
OnFrameClickedRaises the FrameClicked event.
OnFrameDeselectedRaises the FrameDeselected event.
OnFrameDoubleClickedRaises the FrameDoubleClicked event.
OnFrameLayoutChangedRaises the FrameLayoutChanged event.
OnFrameMovedRaises the FrameMoved event.
OnFrameRightClickedRaises the FrameRightClicked event.
OnFrameSelectedRaises the FrameSelected event.
OnFrameSizedRaises the FrameSized event.
OnHeaderFooterActivatedRaises the HeaderFooterActivated event.
OnHeaderFooterDeactivatedRaises the HeaderFooterDeactivated event.
OnHExpandedRaises the HExpanded event.
OnHScrollRaises the HScroll event.
OnHShrunkRaises the HShrunk event.
OnHypertextLinkClickedRaises the HypertextLinkClicked event.
OnHyphenateWordRaises the HyphenateWord event.
OnImageClickedRaises the ImageClicked event.
OnImageCreatedRaises the ImageCreated event.
OnImageDeletedRaises the ImageDeleted event.
OnImageDeselectedRaises the ImageDeselected event.
OnImageDoubleClickedRaises the ImageDoubleClicked event.
OnImageMovedRaises the ImageMoved event.
OnImageRightClickedRaises the ImageRightClicked event.
OnImageSelectedRaises the ImageSelected event.
OnImageSizedRaises the ImageSized event.
OnInputFormattingStyleChangedRaises the InputFormattingStyleChanged event.
OnInputParagraphChangedRaises the InputParagraphChanged event.
OnInputPositionChangedRaises the InputPositionChanged event.
OnMainTextActivatedRaises the MainTextActivated event.
OnMiniToolbarOpeningRaises the MiniToolbarOpening event.
OnObjectMiniToolbarInitializedRaises the ObjectMiniToolbarInitialized event.
OnPageChangedRaises the PageChanged event.
OnPageFormatChangedRaises the PageFormatChanged event.
OnParagraphFormatChangedRaises the ParagraphFormatChanged event.
OnSectionChangedRaises the SectionChanged event.
OnSignatureFieldClickedRaises the SignatureFieldClicked event.
OnSignatureFieldCreatedRaises the SignatureFieldCreated event.
OnSignatureFieldDeletedRaises the SignatureFieldDeleted event.
OnSignatureFieldDeselectedRaises the SignatureFieldDeselected event.
OnSignatureFieldSelectedRaises the SignatureFieldSelected event.
OnSpellCheckTextRaises the SpellCheckText event.
OnSubTextPartClickedRaises the SubTextPartClicked event.
OnSubTextPartCreatedRaises the SubTextPartCreated event.
OnSubTextPartDeletedRaises the SubTextPartDeleted event.
OnSubTextPartDoubleClickedRaises the SubTextPartDoubleClicked event.
OnSubTextPartEnteredRaises the SubTextPartEntered event.
OnSubTextPartLeftRaises the SubTextPartLeft event.
OnTableCreatedRaises the TableCreated event.
OnTableDeletedRaises the TableDeleted event.
OnTableFormatChangedRaises the TableFormatChanged event.
OnTableOfContentsCreatedRaises the TableOfContentsCreated event.
OnTableOfContentsDeletedRaises the TableOfContentsDeleted event.
OnTableOfContentsEnteredRaises the TableOfContentsEntered event.
OnTableOfContentsLeftRaises the TableOfContentsLeft event.
OnTextContextMenuOpeningRaises the TextContextMenuOpening event.
OnTextFieldChangedRaises the TextFieldChanged event.
OnTextFieldClickedRaises the TextFieldClicked event.
OnTextFieldCreatedRaises the TextFieldCreated event.
OnTextFieldDeletedRaises the TextFieldDeleted event.
OnTextFieldDoubleClickedRaises the TextFieldDoubleClicked event.
OnTextFieldEnteredRaises the TextFieldEntered event.
OnTextFieldLeftRaises the TextFieldLeft event.
OnTextFrameActivatedRaises the TextFrameActivated event.
OnTextFrameAppearanceChangedRaises the TextFrameAppearanceChanged event.
OnTextFrameClickedRaises the TextFrameClicked event.
OnTextFrameCreatedRaises the TextFrameCreated event.
OnTextFrameDeactivatedRaises the TextFrameDeactivated event.
OnTextFrameDeletedRaises the TextFrameDeleted event.
OnTextFrameDeselectedRaises the TextFrameDeselected event.
OnTextFrameDoubleClickedRaises the TextFrameDoubleClicked event.
OnTextFrameMovedRaises the TextFrameMoved event.
OnTextFrameRightClickedRaises the TextFrameRightClicked event.
OnTextFrameSelectedRaises the TextFrameSelected event.
OnTextFrameSizedRaises the TextFrameSized event.
OnTextMiniToolbarInitializedRaises the TextMiniToolbarInitialized event.
OnTrackedChangeChangedRaises the TrackedChangeChanged event.
OnTrackedChangeCreatedRaises the TrackedChangeCreated event.
OnTrackedChangeDeletedRaises the TrackedChangeDeleted event.
OnTrackedChangeStateChangedRaises the TrackedChangeStateChanged event.
OnVExpandedRaises the VExpanded event.
OnVScrollRaises the VScroll event.
OnVShrunkRaises the VShrunk event.
OnXmlInvalidRaises the XmlInvalid event.
OnXmlNotWellFormedRaises the XmlNotWellFormed event.
PageColorDialogInvokes the built-in dialog box for setting the page color.
ParagraphFormatDialogInvokes the built-in dialog box for setting the formatting attributes of a paragraph.
PasteReplaces the current selection in the Text Control with the contents of the Clipboard.
PointFromDocumentConverts a Point in document coordinates, which are in twips relative to the top-left corner of the whole document, into a Point that represents the current coordinate system of the TextControl.
PointToDocumentConverts a Point that represents the current coordinate system of the TextControl into a point in document coordinates, which are in twips relative to the top-left corner of the whole document.
PrintPrints a Text Control document or a part of a document.
RedoRedoes the last Text Control operation.
ReplaceOpens the built-in Replace dialog box.
ResetContentsDeletes the entire contents of a Text Control.
SaveSaves the complete contents of a document with the specified format.
SectionFormatDialogInvokes the built-in tabbed dialog box for setting section attributes. These are page settings such as margins and size, all settings concerning headers and footers, page columns and page borders.
SelectSelects text within the Text Control.
SelectAllSelects all text in the Text Control.
SelectWordSelects the word at the current text input position.
SignatureFieldLayoutDialogInvokes the built-in dialog box for alter the layout settings, the size and the text distances of a signature field. This dialog can only be invoked, if a signature field has been selected.
SpellCheckDialogInvokes the built-in dialog box for correcting misspelled words. The dialog steps through all misspelled words in the current document. It begins with the main text following by all headers, footers and textframes. This dialog is only available when a spell checking component has been connected with the SpellChecker property.
TabDialogInvokes the built-in dialog box for setting tabs.
TableFormatDialogInvokes the built-in dialog box for setting formatting attributes of tables. The TableCollection.GetItem method can be used to test whether a table is selected or not.
TableOfContentsDialogInvokes the built-in dialog box for inserting or changing a table of contents. If the current text input position is in an existing table of contents, the dialog box shows its attributes and the user can change it. Otherwise, a new table of contents is inserted with the specified attributes.
TextBackColorDialogInvokes the built-in dialog box for setting the background color of the text.
TextFrameAttributesDialogInvokes the built-in dialog box for setting attributes of text frames. This dialog box is only shown, if a text frame is currently selected. The TextFrameCollection.GetItem method can be used to test whether a text frame is selected or not.
UndoUndoes the last edit operation in the Text Control.
ZoomZooms the contents of the TextControl.

Events

EventDescription
AdaptFontOccurs for each font that must be adapted, because it is not supported. The event can occur, if another printer is set with the FormattingPrinter property, if a document is loaded that contains a font which is not supported, or if fonts have been restricted with the FontSettings.EmbeddableFontsOnly or the FontSettings.TrueTypeFontsOnly property. The event occurs only, if the FontSettings.AdaptFontEvent property has been set to true. The event handler receives an argument of type AdaptFontEventArgs containing data related to this event.
BarcodeClickedOccurs when a barcode has been clicked on. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
BarcodeCreatedOccurs when a new barcode has been created. It occurs, when a barcode has been inserted in the document via the clipboard and when a file containing barcodes has been loaded. It does not occur, when a barcode has been added with the BarcodeCollection.Add method. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
BarcodeDeletedOccurs when a barcode has been deleted. It occurs, when a barcode has been deleted while editing a document and when a barcode has been deleted with the BarcodeCollection.Remove method. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
BarcodeDeselectedOccurs when a barcode has been deselected. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
BarcodeDoubleClickedOccurs when a barcode has been doubleclicked on. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
BarcodeMovedOccurs when a barcode has been moved. It does not occur, if an inline or anchored barcode has been moved because text has been inserted. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
BarcodeRightClickedOccurs when a barcode has been clicked on with the right mouse button. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
BarcodeSelectedOccurs when a barcode has been selected. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
BarcodeSizedOccurs when a barcode has been sized. The event handler receives an argument of type BarcodeEventArgs containing data related to this event.
CannotTrackChangeDetermines how to handle a change of the document that cannot be added to the list of tracked changes. Complex table layout changes, such as deleting a table column or merging table cells cannot be tracked. The default handling shows a MessageBox asking the end-user whether the change of the document should be performed. The event handler receives an argument of type CannotTrackChangeEventArgs containing data related to this event. Using the CannotTrackChangeEventArgs.Handled and the CannotTrackChangeEventArgs.Cancel property the default handling can be changed.
ChangedIndicates that the contents of a document have been changed. The event handler receives an argument of type EventArgs containing data related to this event.
CharFormatChangedOccurs when the character formatting attributes either of the selected characters or the current text input position have been changed. Formatting attributes that can be asigned to single characters are the font, the font attributes, text colors and the baseline. The event handler receives an argument of type EventArgs containing data related to this event.
CommentChangedOccurs when the text of a comment has been altered. The event handler receives an argument of type CommentEventArgs containing data related to this event.
CommentCreatedOccurs when a piece of text has been commented. The event handler receives an argument of type CommentEventArgs containing data related to this event.
CommentDeletedOccurs when a comment has been removed from the document. The event handler receives an argument of type CommentEventArgs containing data related to this event.
CommentedTextEnteredOccurs when the current input position has been moved to a position that belongs to a commented piece of text. The event handler receives an argument of type CommentEventArgs containing data related to this event.
CommentedTextLeftOccurs when the current input position has left a commented piece of text. The event handler receives an argument of type CommentEventArgs containing data related to this event.
CommentStateChangedOccurs when the state of a comment alters from active to inactive or vice versa. A piece of text with an inactive comment is not highlighted and is not retrieved through the CommentCollection.GetItem method. The event handler receives an argument of type CommentEventArgs containing data related to this event.
ContentsResetOccurs when all text contents have been deleted and all attributes have been reset to the state after initialization. The event handler receives an argument of type EventArgs containing data related to this event.
DocumentLinkClickedOccurs when a text field has been clicked on that represents a link to a target in the document. The event handler receives an argument of type DocumentLinkEventArgs containing data related to this event.
DocumentLoadedOccurs when a new document has been loaded. The event handler receives an argument of type EventArgs containing data related to this event.
DocumentTargetCreatedOccurs when a document target has been created. The event handler receives an argument of type DocumentTargetEventArgs containing data related to this event.
DocumentTargetDeletedOccurs when a document target has been deleted. The event handler receives an argument of type DocumentTargetEventArgs containing data related to this event.
DrawingActivatedOccurs when a drawing has been activated. The event handler receives an argument of type DrawingEventArgs containing data related to this event. A drawing is activated, when the user clicks the drawing with the mouse. The user can alter the drawing's contents, when it is activated. When the user clicks on the drawing's border, it is selected. A selected drawing can be sized, moved or copied to the clipboard.
DrawingClickedOccurs when a drawing has been clicked on. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingCreatedOccurs when a new drawing has been created. It occurs, when a drawing has been inserted in the document via the clipboard and when a file containing drawings has been loaded. It does not occur, when a drawing has been added with the DrawingCollection.Add method. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingDeactivatedOccurs when a drawing has been deactivated. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingDeletedOccurs when a drawing has been deleted. It occurs, when a drawing has been deleted while editing a document and when a drawing has been deleted with the DrawingCollection.Remove method. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingDeselectedOccurs when a drawing has been deselected. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingDoubleClickedOccurs when a drawing has been doubleclicked on. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingMovedOccurs when a drawing has been moved. It does not occur, if an inline or anchored drawing has been moved because text has been inserted. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingRightClickedOccurs when a drawing has been clicked on with the right mouse button. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingSelectedOccurs when a drawing has been selected. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
DrawingSizedOccurs when a drawing has been sized. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
EditableRegionCreatedOccurs when an editable region has been created. The event handler receives an argument of type EditableRegionEventArgs containing data related to this event.
EditableRegionDeletedOccurs when an editable region has been deleted. The event handler receives an argument of type EditableRegionEventArgs containing data related to this event.
EditableRegionEnteredOccurs when the current input position has been moved to a position that belongs to an editable region. The event handler receives an argument of type EditableRegionEventArgs containing data related to this event.
EditableRegionLeftOccurs when the current input position has left an editable region. The event handler receives an argument of type EditableRegionEventArgs containing data related to this event.
FootnoteCreatedOccurs when a footnote has been created. The event handler receives an argument of type FootnoteEventArgs containing data related to this event.
FootnoteDeletedOccurs when a footnote has been deleted. The event handler receives an argument of type FootnoteEventArgs containing data related to this event.
FootnoteReferenceMarkEnteredOccurs when the current input position has been moved to the position of a footnote reference mark. The event handler receives an argument of type FootnoteEventArgs containing data related to this event.
FootnoteReferenceMarkLeftOccurs when the current input position has left the position of a footnote reference mark. The event handler receives an argument of type FootnoteEventArgs containing data related to this event.
FootnoteSectionActivatedOccurs when the footnote section of a document's page gets the current text input position from another part of the document. The event handler receives an argument of type EventArgs containing data related to this event.
FootnoteSectionDeactivatedOccurs when the footnote section of a document's page has lost the current text input position. The event handler receives an argument of type EventArgs containing data related to this event.
FormattingStyleChangedOccurs after formatting attributes of one or more formatting styles have been changed. The event handler receives an argument of type EventArgs containing data related to this event.
FormattingStyleListChangedOccurs after one or more formatting styles have been added or removed or if the name of an existing style has been changed. The event handler receives an argument of type EventArgs containing data related to this event.
FormFieldCheckChangedOccurs when the checkmark of a CheckFormField has been changed from checked to unchecked or vice versa. The event handler receives an argument of type CheckFormFieldEventArgs containing data related to this event. The event does not occur, when the CheckFormfield.Checked property has been used to change the checkmark.
FormFieldDateChangedOccurs when the date of a DateFormField has been changed. The event handler receives an argument of type DateFormFieldEventArgs containing data related to this event. The event does not occur, when the DateFormField.Date property has been used to change the date.
FormFieldSelectionChangedOccurs when the selected item of a SelectionFormField has been changed. The event handler receives an argument of type SelectionFormFieldEventArgs containing data related to this event. The event does not occur, when the SelectionFormField.SelectedIndex property has been used to change the item.
FormFieldSettingsChangedOccurs when the name, the id and/or formatting attributes of a CheckFormField, TextFormField, SelectionFormField or DateFormField have been changed. The event handler receives an argument of the type FormFieldEventArgs containing data related to this event.
FormFieldTextChangedOccurs when the text of a TextFormField has been changed. The event handler receives an argument of type TextFormFieldEventArgs containing data related to this event. The event occurs only when the text has been changed through typing or deleting text with the keyboard and after the text input position has left the field.
FrameClickedOccurs when a frame (image, text frame, chart, barcode or drawing) has been clicked on. The event handler receives an argument of type FrameEventArgs containing data related to this event.
FrameDeselectedOccurs when a frame (image, text frame, chart, barcode or drawing) has been deselected. The event handler receives an argument of type FrameEventArgs containing data related to this event.
FrameDoubleClickedOccurs when a frame (image, text frame, chart, barcode or drawing) has been doubleclicked on. The event handler receives an argument of type FrameEventArgs containing data related to this event.
FrameLayoutChangedOccurs when the layout of a frame (image, text frame, chart, barcode or drawing) has been changed. Layout attributes are insertion mode, textflow and z-order. The event handler receives an argument of type FrameEventArgs containing data related to this event.
FrameMovedOccurs when a frame (image, text frame, chart, barcode or drawing) has been moved. It does not occur, if an inline or anchored frame has been moved because text has been inserted. The event handler receives an argument of type FrameEventArgs containing data related to this event.
FrameRightClickedOccurs when a frame (image, text frame, chart, barcode or drawing) has been clicked on with the right mouse button. The event handler receives an argument of type FrameEventArgs containing data related to this event.
FrameSelectedOccurs when a frame (image, text frame, chart, barcode or drawing) has been selected. The event handler receives an argument of type FrameEventArgs containing data related to this event.
FrameSizedOccurs when a frame (image, text frame, chart, barcode or drawing) has been sized. The event handler receives an argument of type FrameEventArgs containing data related to this event.
HeaderFooterActivatedOccurs when a header or footer gets the current text input position from another part of the document such as a textframe or the main text. The event handler receives an argument of type HeaderFooterEventArgs containing data related to this event.
HeaderFooterDeactivatedOccurs when a header or footer loses the current text input position and another part of the document such as a textframe or the main text gets it. The event handler receives an argument of type HeaderFooterEventArgs containing data related to this event.
HExpandedOccurs when the Text Control has automatically expanded its size horizontally. The event handler receives an argument of type EventArgs containing data related to this event.
HScrollOccurs when the horizontal scroll position has been changed. The event handler receives an argument of type EventArgs containing data related to this event.
HShrunkOccurs when the Text Control has automatically shrunk its size horizontally. The event handler receives an argument of type EventArgs containing data related to this event.
HypertextLinkClickedOccurs when a text field has been clicked on that represents the source of a hypertext link. The event handler receives an argument of type HypertextLinkEventArgs containing data related to this event.
HyphenateWordOccurs, if a word does not fit in the line and must be hyphenated. This event occurs only, if the IsHyphenationEnabled property has been set to true. The event handler receives an argument of type HyphenateWordEventArgs containing data related to this event.
ImageClickedOccurs when an image has been clicked on. The event handler receives an argument of type ImageEventArgs containing data related to this event.
ImageCreatedOccurs when a new image has been created. It occurs if an image has been inserted in the document with the clipboard or if a file containing images has been loaded. It does not occur if an image has been added with the ImageCollection.Add method. The event handler receives an argument of type ImageEventArgs containing data related to this event.
ImageDeletedOccurs when an image has been deleted. It occurs if an image has been deleted while editing a document or if an image has been deleted with the ImageCollection.Remove method. The event handler receives an argument of type ImageEventArgs containing data related to this event.
ImageDeselectedOccurs when an image has been deselected. The event handler receives an argument of type ImageEventArgs containing data related to this event.
ImageDoubleClickedOccurs when an image has been doubleclicked on. The event handler receives an argument of type ImageEventArgs containing data related to this event.
ImageMovedOccurs when an inserted image has been moved. It does not occur, if an inline or anchored image has been moved because text has been inserted. The event handler receives an argument of type ImageEventArgs containing data related to this event.
ImageRightClickedOccurs when an image has been clicked on with the right mouse button. The event handler receives an argument of type ImageEventArgs containing data related to this event.
ImageSelectedOccurs when an image has been selected. The event handler receives an argument of type ImageEventArgs containing data related to this event.
ImageSizedOccurs when an inserted image has been sized. The event handler receives an argument of type ImageEventArgs containing data related to this event.
InputFormattingStyleChangedOccurs after the text input position has been moved to a text part formatted with another style. The event handler receives an argument of type EventArgs containing data related to this event.
InputParagraphChangedOccurs when the text input position has been moved to another paragraph. The event handler receives an argument of type EventArgs containing data related to this event.
InputPositionChangedOccurs when the text input position has been changed. The event handler receives an argument of type EventArgs containing data related to this event.
MainTextActivatedOccurs when the main text of the document gets the current text input position from another part of the document, such as a header, a footer or a textframe. The event handler receives an argument of type EventArgs containing data related to this event.
MiniToolbarOpeningOccurs to handle displaying context sensitive mini toolbars. The event handler receives an argument of type WPF.MiniToolbarOpeningEventArgs containing data related to this event. The event itself is raised if the ShowMiniToolbar property is set to a value that is not MiniToolbarButton.None and the corresponding mouse button is raised.
ObjectMiniToolbarInitalizedNot described in the reference. public event MiniToolbarInitializedEventHandler ObjectMiniToolbarInitalized;
ObjectMiniToolbarInitializedOccurs immediately after the built-in WPF.ObjectMiniToolbar was initialized. The event handler receives an argument of type WPF.MiniToolbarInitializedEventArgs containing the ObjectMiniToolbar that was created. The event is raised if the ShowMiniToolbar property is set to MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton.
PageChangedOccurs when the text input position has been moved to another page. The event handler receives an argument of type EventArgs containing data related to this event.
PageFormatChangedOccurs when the page format settings have been changed. The event handler receives an argument of type EventArgs containing data related to this event.
ParagraphFormatChangedOccurs when the formatting attributes of the selected paragraphs have been changed. The event handler receives an argument of type EventArgs containing data related to this event.
PropertyChangedNot described in the reference. public event PropertyChangedEventHandler PropertyChanged;
SectionChangedOccurs when the text input position has been moved to another section. The event handler receives an argument of type EventArgs containing data related to this event.
SignatureFieldClickedOccurs when a signature field has been clicked on. The event handler receives an argument of type SignatureFieldEventArgs containing data related to this event.
SignatureFieldCreatedOccurs when a new signature field has been created. It occurs if a signature field has been inserted in the document with the clipboard or if a file containing signature fields has been loaded. It does not occur if a signature field has been added with the SignatureFieldCollection.Add method. The event handler receives an argument of type SignatureFieldEventArgs containing data related to this event.
SignatureFieldDeletedOccurs when a signature field has been deleted. It occurs if a signature field has been deleted while editing a document or if a signature field has been deleted with the SignatureFieldCollection.Remove method. The event handler receives an argument of type SignatureFieldEventArgs containing data related to this event.
SignatureFieldDeselectedOccurs when a signature field has been deselected. The event handler receives an argument of type SignatureFieldEventArgs containing data related to this event.
SignatureFieldSelectedOccurs when a signature field has been selected. The event handler receives an argument of type SignatureFieldEventArgs containing data related to this event.
SpellCheckTextOccurs, if the document's text has been altered and the spelling of the new text must be checked. This event occurs only, if the WPF.TextControl.IsSpellCheckingEnabled property has been set to true. The event handler receives an argument of type SpellCheckTextEventArgs containing data related to this event.
SubTextPartClickedOccurs when a subtextpart has been clicked on. The event handler receives an argument of type SubTextPartEventArgs containing data related to this event.
SubTextPartCreatedOccurs when a subtextpart has been created. The event handler receives an argument of type SubTextPartEventArgs containing data related to this event.
SubTextPartDeletedOccurs when a subtextpart has been deleted. The event handler receives an argument of type SubTextPartEventArgs containing data related to this event.
SubTextPartDoubleClickedOccurs when a subtextpart has been double-clicked on. The event handler receives an argument of type SubTextPartEventArgs containing data related to this event.
SubTextPartEnteredOccurs when the current input position has been moved to a position that belongs to a subtextpart. The event handler receives an argument of type SubTextPartEventArgs containing data related to this event.
SubTextPartLeftOccurs when the current input position has left a subtextpart. The event handler receives an argument of type SubTextPartEventArgs containing data related to this event.
TableCreatedOccurs after a new table has been created as a result of a text insertion via the clipboard or when loading a document which contains a table without an identifier. It does not occur when the table is inserted with the TableInsert method or for tables that have a previously set identifier when loading a document. The event handler receives an argument of type TableEventArgs containing data related to this event.
TableDeletedOccurs after a table has been deleted. The event handler receives an argument of type TableEventArgs containing data related to this event.
TableFormatChangedOccurs when the design attributes of a selected table have been changed. The event handler receives an argument of type TableEventArgs containing data related to this event.
TableOfContentsCreatedOccurs when a table of contents has been created. The event handler receives an argument of type TableOfContentsEventArgs containing data related to this event.
TableOfContentsDeletedOccurs when a table of contents has been deleted. The event handler receives an argument of type TableOfContentsEventArgs containing data related to this event.
TableOfContentsEnteredOccurs when the current input position has been moved to a position that belongs to a table of contents. The event handler receives an argument of type TableOfContentsEventArgs containing data related to this event.
TableOfContentsLeftOccurs when the current input position has left a table of contents. The event handler receives an argument of type TableOfContentsEventArgs containing data related to this event.
TextContextMenuOpeningOccurs immedialtely before a built-in context menu will be opened. The event handler receives an argument of type WPF.TextContextMenuEventArgs containing data related to this event.
TextFieldChangedOccurs when the text of a text field has been changed. The event handler receives an argument of type TextFieldEventArgs containing data related to this event.
TextFieldClickedOccurs when a text field has been clicked on. The event handler receives an argument of type TextFieldEventArgs containing data related to this event.
TextFieldCreatedOccurs when a text field has been created. The event handler receives an argument of type TextFieldEventArgs containing data related to this event.
TextFieldDeletedOccurs when a text field has been deleted. The event handler receives an argument of type TextFieldEventArgs containing data related to this event.
TextFieldDoubleClickedOccurs when a text field has been double-clicked on. The event handler receives an argument of type TextFieldEventArgs containing data related to this event.
TextFieldEnteredOccurs when the current input position has been moved to a position that belongs to a text field. The event handler receives an argument of type TextFieldEventArgs containing data related to this event.
TextFieldLeftOccurs when the current input position has left a text field. The event handler receives an argument of type TextFieldEventArgs containing data related to this event.
TextFrameActivatedOccurs when a text frame gets the current text input position from another part of the document such as a header, a footer or the main text. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameAppearanceChangedOccurs when the appearance of a text frame (background color, transparency, border, inner margins) has been changed. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameClickedOccurs when a text frame has been clicked on. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameCreatedOccurs when a new text frame has been created. It occurs if a text frame has been inserted in the document with the clipboard or if a file containing text frames has been loaded. It does not occur if an text frame has been added with the TextFrameCollection.Add method. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameDeactivatedOccurs when a text frame loses the current text input position and another part of the document such as a header, a footer or the main text gets it. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameDeletedOccurs when a text frame has been deleted. It occurs if a text frame has been deleted while editing a document or if an text frame has been deleted with the TextFrameCollection.Remove method. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameDeselectedOccurs when a text frame has been deselected. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameDoubleClickedOccurs when a text frame has been doubleclicked on. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameMovedOccurs when a text frame has been moved. It does not occur, if an inline or anchored text frame has been moved because text has been inserted. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameRightClickedOccurs when a text frame has been clicked on with the right mouse button. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameSelectedOccurs when a text frame has been selected. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextFrameSizedOccurs when a text frame has been sized. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.
TextMiniToolbarInitalizedNot described in the reference. public event MiniToolbarInitializedEventHandler TextMiniToolbarInitalized;
TextMiniToolbarInitializedOccurs immediately after the built-in WPF.TextMiniToolbar was initialized. The event handler receives an argument of type WPF.MiniToolbarInitializedEventArgs containing the TextMiniToolbar that was created. The event is raised if the ShowMiniToolbar property is set to MiniToolbarButton.LeftButton, MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton.
TrackedChangeChangedOccurs when the text of a tracked change has been altered. The event handler receives an argument of type TrackedChangeEventArgs containing data related to this event.
TrackedChangeCreatedOccurs when a tracked change has been created. A tracked change is created when a document is changed and the TextControl.IsTrackChangesEnabled property has been set to true. The event handler receives an argument of type TrackedChangeEventArgs containing data related to this event.
TrackedChangeDeletedOccurs when a tracked change has been deleted. A tracked change is deleted when the change is either accepted or rejected. The event handler receives an argument of type TrackedChangeEventArgs containing data related to this event.
TrackedChangeStateChangedOccurs when the state of a tracked change alters from active to inactive or vice versa. An inactive TrackedChange is not highlighted and is not retrieved through the TrackedChangeCollection.GetItem method. The event handler receives an argument of type TrackedChangeEventArgs containing data related to this event.
VExpandedOccurs when the Text Control has automatically expanded its size vertically. The event handler receives an argument of type EventArgs containing data related to this event.
VScrollOccurs when the vertical scroll position has been changed. The event handler receives an argument of type EventArgs containing data related to this event.
VShrunkOccurs when the Text Control has automatically shrunk its size vertically. The event handler receives an argument of type EventArgs containing data related to this event.
XmlInvalidOccurs when a loaded or changed XML document cannot be validated with the document type definition (DTD) referenced in the document. The event handler receives an argument of type XmlErrorEventArgs containing data related to this event.
XmlNotWellFormedOccurs when a loaded XML document is not well-formed. The event handler receives an argument of type XmlErrorEventArgs containing data related to this event.

Fields

FieldDescription
AcceptsTabPropertyNot described in the reference. public static readonly DependencyProperty AcceptsTabProperty;
ControlCharsPropertyNot described in the reference. public static readonly DependencyProperty ControlCharsProperty;
DocumentTargetMarkersPropertyNot described in the reference. public static readonly DependencyProperty DocumentTargetMarkersProperty;
DrawingMarkerLinesPropertyNot described in the reference. public static readonly DependencyProperty DrawingMarkerLinesProperty;
HorizontalScrollBarVisibilityPropertyNot described in the reference. public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty;
IsUndoEnabledPropertyNot described in the reference. public static readonly DependencyProperty IsUndoEnabledProperty;
SelectObjectsPropertyNot described in the reference. public static readonly DependencyProperty SelectObjectsProperty;
TextFrameMarkerLinesPropertyNot described in the reference. public static readonly DependencyProperty TextFrameMarkerLinesProperty;
VerticalScrollBarVisibilityPropertyNot described in the reference. public static readonly DependencyProperty VerticalScrollBarVisibilityProperty;
ViewModePropertyNot described in the reference. public static readonly DependencyProperty ViewModeProperty;
ZoomFactorPropertyNot described in the reference. public static readonly DependencyProperty ZoomFactorProperty;

Further Reading

  • Displaying Line Numbers in Windows Forms and WPF –
  • Sneak Peek X16: New Customizable Sidebar Controls –
  • Different Ways to Create Documents using Text Control Products –