Porting TX Text Control ActiveX to a Windows Forms Application

The following lists all properties, methods and events of the ActiveX text component and the corresponding implementations in TX Text Control .NET, grouped by categories.

Character Formatting

ActiveX Property/Method/Event .NET Class/Property/Method/Event
BaseLine Property TextControl.Baseline Property, Selection.Baseline Property
CharFormatChange Event TextControl.CharFormatChanged Event
FontBold Property TextControl.Font Property, Selection.Bold Property
FontDialog Method TextControl.FontDialog Method
FontItalic Property TextControl.Font Property, Selection.Italic Property
FontName Property TextControl.Font Property, Selection.FontName Property
FontSize Property TextControl.Font Property, Selection.FontSize Property
FontStrikethru Property TextControl.Font Property, Selection.StrikeOut Property
FontUnderline Property TextControl.Font Property, Selection.Underline Property
FontUnderlineStyle Property TextControl.FontUnderlineStyle Property, Selection.Underline Property
ForeColor Property TextControl.ForeColor Property, Selection.ForeColor Property
TextBkColor Property TextControl.TextBackColor Property, Selection.TextBackColor Property

Paragraph Formatting

ActiveX Property/Method/Event .NET Class/Property/Method/Event
Alignment Property ParagraphFormat.Alignment Property
FrameDistance Property ParagraphFormat.FrameDistance Property
FrameLineWidth Property ParagraphFormat.FrameLineWidth Property
FrameStyle Property ParagraphFormat.FrameStyle Property
IndentB Property ParagraphFormat.BottomDistance Property
IndentFL Property ParagraphFormat.LeftIndent Property
IndentL Property ParagraphFormat.HangingIndent Property
IndentR Property ParagraphFormat.RightIndent Property
IndentT Property ParagraphFormat.TopDistance Property
LineSpacing Property ParagraphFormat.LineSpacing Property
LineSpacingT Property ParagraphFormat.AbsoluteLineSpacing Property
ParagraphDialog Method TextControl.ParagraphFormatDialog Method
ParagraphFormatChange Event TextControl.ParagraphFormatChanged Event
TabCurrent Property No longer necessary, because positions and types of tabs are implemented with arrays.
TabDialog Method TextControl.TabDialog Method
TabPos Property ParagraphFormat.TabPositions Property
TabType Property ParagraphFormat.TabTypes Property
KeepLinesTogether Property ParagraphFormat.KeepLinesTogether Property
KeepWithNext Property ParagraphFormat.KeepWithNext Property
PageBreakBefore Property ParagraphFormat.PageBreakBefore Property
WidowOrphanLines Property ParagraphFormat.WidowOrphanLines Property

Bullets and Numbered Lists

ActiveX Property/Method/Event .NET Class/Property/Method/Event
BulletAttribute Property ListFormat Class Properties, TextControl.ListFormat Property, Selection.ListFormat Property.
ListAttrDialog Method TextControl.FormattingStylesDialog Method
ListType Property ListFormat.Type Property
NumberingAttribute Property ListFormat Class Properties, TextControl.ListFormat Property, Selection.ListFormat Property.

Headers and Footers

ActiveX Property/Method/Event .NET Class/Property/Method/Event
HeaderFooter Property TextControl.HeadersAndFooters Property, HeaderFooterCollection Class
HeaderFooterActivate Method HeaderFooter.Activate Method, HeaderFooter.Deactivate Method
HeaderFooterActivated Event TextControl.HeaderFooterActivated Event
HeaderFooterDeactivated Event TextControl.HeaderFooterDeactivated Event
HeaderFooterPosition Property HeaderFooter.Distance Property
HeaderFooterSelect Method No longer necessary, because the HeaderFooter class implements its own properties.
HeaderFooterStyle Property TextControl.HeaderFooterActivationStyle Property, TextControl.HeaderFooterFrameStyle Property.

Text Frames

ActiveX Property/Method/Event .NET Class/Property/Method/Event
TextFrameActivated Event TextControl.TextFrameActivated Event
TextFrameBackColor Property TextFrame.BackColor Property
TextFrameBorderWidth Property TextFrame.BorderWidth Property
TextFrameDeactivated Event TextControl.TextFrameDeactivated Event
TextFrameInsert Method TextFrameCollection.Add Method
TextFrameInsertAsChar Method TextFrameCollection.Add Method
TextFrameInsertFixed Method TextFrameCollection.Add Method
TextFrameInternalMargin Property TextFrame.InternalMargins Property
TextFrameMarkerLines Property TextControl.TextFrameMarkerLines Property
TextFrameSelect Method TextFrameCollection Method
TextFrameActivated Event TextControl.TextFrameActivated Event
TextFrameBackColor Property TextFrame.BackColor Property
TextFrameBorderWidth Property TextFrame.BorderWidth Property
TextFrameDeactivated Event TextControl.TextFrameDeactivated Event
TextFrameInsert Method TextFrameCollection.Add Method
TextFrameInsertAsChar Method TextFrameCollection.Add Method
TextFrameInsertFixed Method TextFrameCollection.Add Method
TextFrameInternalMargin Property TextFrame.InternalMargins Property
TextFrameMarkerLines Property TextControl.TextFrameMarkerLines Property
TextFrameSelect Method TextFrameCollection Method

Page and Document Settings

ActiveX Property/Method/Event .NET Class/Property/Method/Event
Change Event TextControl.Changed Event
CurrentPages Property TextControl.Pages Property
Device Property Currently not implemented. Will be available in a future version.
HScroll Event TextControl.HScroll Event
PageFormatChange Event TextControl.PageFormatChanged Event
PageHeight Property TextControl.PageSize Property
PageMarginB Property TextControl.PageMargins Property, PageMargins Class
PageMarginL Property TextControl.PageMargins Property, PageMargins Class
PageMarginR Property TextControl.PageMargins Property, PageMargins Class
PageMarginT Property TextControl.PageMargins Property, PageMargins Class
PageWidth Property TextControl.PageSize Property
ScrollBars Property TextControl.ScrollBars Property
ScrollPosX Property TextControl.ScrollLocation Property
ScrollPosY Property TextControl.ScrollLocation Property
ViewMode Property TextControl.ViewMode Property
VScroll Event TextControl.VScroll Event
PageChanged Event TextControl.PageChanged Event
PageOrientation Property SectionFormat.Landscape Property

Stylesheets

ActiveX Property/Method/Event .NET Class/Property/Method/Event
Style Object FormattingStyle Class, InlineStyle Class, ParagraphStyle Class
StyleChanged Event TextControl.InputFormattingStyleChanged Event
StyleCurrent Property Selection.FormattingStyle Property
StyleDialog Method TextControl.FormattingStylesDialog Method
StyleListChanged Event TextControl.FormattingStyleListChanged Event
Styles Collection InlineStyleCollection Class, ParagraphStyleCollection Class
Styles Property TextControl.InlineStyles Property, TextControl.ParagraphStyles Property.
Style.Alignment Property ParagraphFormat.Alignment Property
Style.Apply Method FormattingStyle.Apply Method
Style.Baseline Property FormattingStyle.Baseline Property
Style.BaselineType Property FormattingStyle.Baseline Property
Style.BulletAttribute Property ListFormat.BulletCharacter, ListFormat.BulletSize Property
Style.FontBold Property FormattingStyle.Bold Property
Style.FontItalic Property FormattingStyle.Italic Property
Style.FontName Property FormattingStyle.FontName Property
Style.FontSize Property FormattingStyle.FontSize Property
Style.FontStrikethru Property FormattingStyle.Strikeout Property
Style.FontUnderline Property FormattingStyle.Underline Property
Style.ForeColor Property FormattingStyle.ForeColor Property
Style.FrameDistance Property ParagraphFormat.FrameDistance Property
Style.FrameLineWidth Property ParagraphFormat.FrameLineWidth Property
Style.FrameStyle Property ParagraphFormat.FrameStyle Property
Style.IndentB Property ParagraphFormat.BottomDistance Property
Style.IndentFL Property ParagraphFormat.HangingIndent Property
Style.IndentL Property ParagraphFormat.LeftIndent Property
Style.IndentR Property ParagraphFormat.RightIndent Property
Style.IndentT Property ParagraphFormat.TopDistance Property
Style.KeepLinesTogether Property ParagraphFormat.KeepLinesTogether Property
Style.KeepWithNext Property ParagraphFormat.KeepWithNext Property
Style.LineSpacing Property ParagraphFormat.LineSpacing Property
Style.LineSpacingT Property ParagraphFormat.LineSpacing Property
Style.ListType Property ListFormat.Type Property
Style.NextParaStyle Property ParagraphStyle.FollowingStyle Property
Style.NumberingAttribute Property ListFormat.NumberFormat Property
Style.PageBreakBefore Property ParagraphFormat.PageBreakBefore Property
Style.StyleName Property FormattingStyle.Name Property
Style.StyleType Property The FormattingStyle class is the base class for the InlineStyle and ParagraphStyle classes.
Style.TabPos Property ParagraphFormat.TabPositions Property
Style.TabType Property ParagraphFormat.TabTypes Property
Style.TextBkColor Property FormattingStyle.TextBackColor Property
Style.WidowOrphanLines Property ParagraphFormat.WidowOrphanLines Property
Styles Collection Object InlineStyle, ParagraphStyle Object
Styles.Count Property FormattingStyleCollection.Count Property
Styles.Item Method ParagraphStyleCollection.GetItem Method

Tables

ActiveX Property/Method/Event .NET Class/Property/Method/Event
TableAtInputPos Property TableCollection.GetItem Method
TableAttrDialog Method TextControl.TableFormatDialog Method
TableCanChangeAttr Property TableCollection.CanAdd Property
TableCanDeleteColumn Property TableColumnCollection.CanRemove Property
TableCanDeleteLines Property TableRowCollection.CanRemove Property
TableCanInsert Property TableCollection.CanAdd Property
TableCanInsertColumn Property TableColumnCollection.CanAdd Property
TableCanInsertLines Property TableRowCollection.CanAdd Property
TableCellAttribute Property TableCellFormat Class Properties, TableCell.CellFormat Property, TableRow.CellFormat Property, TableColumn.CellFormat Property, TableCell.Width Property, TableCell.Position Property
TableCellLength Property TableCell.Length Property
TableCellStart Property TableCell.Start Property
TableCellText Property TableCell.Text Property
TableColAtInputPos Property TableColumnCollection.GetItem Method
TableColumns Property TablePartCollection.Count Property
TableCreated Event TextControl.TableCreated Event.
TableDeleteColumn Method TableColumnCollection.Remove Method
TableDeleted Event TextControl.TableDeleted Event.
TableDeleteLines Method TableRowCollection.Remove Method
TableFormatChanged Event TextControl.TableFormatChanged Event.
TableGridLines Property TableCollection.GridLines Property
TableInsert Method TableCollection.Add Method
TableInsertColumn Method TableColumnCollection.Add Method
TableInsertLines Method TableRowCollection.Add Method
TableNext Method TableCollection Class (enumeration with for-each)
TableRowAtInputPos Property TableRowCollection.GetItem Method
TableRows Property TablePartCollection.Count Property
TableCanSplit Property Table.CanSplit Property
TableGetOuter Method Table.OuterTable Method
TableGetOuterMost Method Table.OuterMostTable Method
TableNestedLevel Property Table.NestedLevel Property
TableSplit Method Table.Split Method

Zooming

ActiveX Property/Method/Event .NET Class/Property/Method/Event
Zoomed Event TextControl.Zoomed Event
ZoomFactor Property TextControl.ZoomFactor Property

Loading, Saving and Database Support

ActiveX Property/Method/Event .NET Class/Property/Method/Event
DataTextFormat Property Not supported in Text Control.NET.
Load Method TextControl.Load Method, Selection.Load Method.
LoadFromMemory Method TextControl.Load Method, Selection.Load Method.
LoadSaveAttribute Property LoadSettings Class Properties, SaveSettings Class Properties.
Save Method TextControl.Save Method, Selection.Save Method.
SaveToMemory Method TextControl.Save Method, Selection.Save Method.
SaveToMemoryBuffer Method TextControl.Save Method, Selection.Save Method.
Text Property TextControl.Text Property, Selection.Text Property
TextExport Method (Obsolete) TextControl.Save
TextImport Method (Obsolete) TextControl.Load

Images and OLE Objects

ActiveX Property/Method/Event .NET Class/Property/Method/Event
ImageDisplayMode Property Not supported in Text Control.NET.
ImageExportFilename Property Image.ExportFileName Property
ImageExportFilters Property ImageCollection.ExportFilters Property
ImageExportFormat Property Image.ExportFilterIndex Property
ImageFilename Property Image.FileName Property
ImageFilters Property ImageCollection.ImportFilters Property
ImageSaveMode Property Image.SaveMode Property
ObjectClicked Event TextControl.ImageClicked Event
ObjectCreated Event TextControl.ImageCreated Event
ObjectCurrent Property No longer necessary, because the Image class implements the properties for setting the attributes of an image.
ObjectDblClicked Event TextControl.ImageDoubleClicked Event
ObjectDelete Method ImageCollection.Remove Method
ObjectDeleted Event TextControl.ImageDeleted Event
ObjectDistance Property Image.TextDistances Property
ObjectGetData Event Not supported in Text Control.NET.
ObjectGethWnd Event Not supported in Text Control.NET.
ObjectGetZoom Event Not supported in Text Control.NET.
ObjectInsertAsChar Method ImageCollection.Add Method
ObjectInsertFixed Method ImageCollection.Add Method
ObjectItem Property Not supported in Text Control.NET.
ObjectMoved Event TextControl.ImageMoved Event
ObjectNext Method ImageCollection Class (enumeration with for-each)
ObjectPrint Event Not supported in Text Control.NET.
ObjectScaleX Property Image.HorizontalScaling Property
ObjectScaleY Property Image.VerticalScaling Property
ObjectScrollOut Event Not supported in Text Control.NET.
ObjectSetData Event Not supported in Text Control.NET.
ObjectSetZoom Event Not supported in Text Control.NET.
ObjectSized Event TextControl.ImageSized Event
ObjectSizeMode Property Image.Moveable Property, Image.Sizeable Property
ObjectTextflow Property Image.InsertionMode Property
ObjectGetFromName Method FrameCollection.GetItem Method
ObjectGetFromUserId Method FrameCollection.GetItem Method
ObjectGetSelected Method FrameCollection.GetItem Method
ObjectHeight Property FrameBase.Size Property
ObjectInsert Method ImageCollection.Add, TextFrameCollection.Add Method
ObjectInsertionMode Property FrameBase.InsertionMode Property
ObjectName Property FrameBase.Name Property
ObjectPosX Property FrameBase.Location Property
ObjectPosY Property FrameBase.Location Property
ObjectRightClicked Event TextControl.FrameRightClicked Event
ObjectUserId Property FrameBase.ID Property
ObjectWidth Property FrameBase.Size Property

Hypertext Links

ActiveX Property/Method/Event .NET Class/Property/Method/Event
FieldLinkClicked Event TextControl.HypertextLinkClicked Event
FieldType Property DocumentLink Class, DocumentTarget Class, HypertextLink Class, PageNumberField Class
FieldTypeData Property DocumentLink.DocumentTarget Property, DocumentTarget.TargetName Property, HypertextLink.Target Property, PageNumberField.NumberFormat Property, PageNumberField.StartNumber Property

Clipboard Operations

ActiveX Property/Method/Event .NET Class/Property/Method/Event
CanCopy Property TextControl.CanCopy Property
CanPaste Property TextControl.CanPaste Property
Clip Method TextControl.Copy Method, TextControl.Cut Method, TextControl.Paste Method

Undo

ActiveX Property/Method/Event .NET Class/Property/Method/Event
CanRedo Property TextControl.CanRedo Property
CanUndo Property TextControl.CanUndo Property
Redo Method TextControl.Redo Method
Undo Method TextControl.Undo Method
AllowUndo Property TextControl.AllowUndo Property
EndUndoAction Method TextControl.EndUndoAction Method
StartUndoAction Method TextControl.BeginUndoAction Method

Printing

ActiveX Property/Method/Event .NET Class/Property/Method/Event
PrintColors Property TextControl.Print Method, PrintDocument.DafaultPageSettings.Color Property
PrintDevice Property TextControl.Print Method, PrintDocument.PrinterSettings.PrinterName
PrintDoc Method TextControl.Print Method
PrintOffset Property Not supported in Text Control.NET.
PrintPage Method TextControl.Print Method.
PrintZoom Property Not supported in Text Control.NET.

Search and Replace

ActiveX Property/Method/Event .NET Class/Property/Method/Event
Find Method TextControl.Find Method
FindReplace Method TextControl.Find Method, TextControl.Replace Method

Columns

ActiveX Property/Method/Event .NET Class/Property/Method/Event
ColumnDistance Property SectionFormat.ColumnDistances Property
ColumnLineColor Property SectionFormat.ColumnLineColor Property
ColumnLineWidth Property SectionFormat.ColumnLineWidth Property
Columns Property SectionFormat.Columns Property
ColumnWidthsAndDistances Property SectionFormat.ColumnDistances, SectionFormat.ColumnWidths Property

Sections

ActiveX Property/Method/Event .NET Class/Property/Method/Event
SectionAtInputPos Property SectionCollection.GetItem Property
SectionBreakKind Property SectionFormat.BreakKind Property
SectionChanged Event TextControl.SectionChanged Event
SectionCount Property SectionCollection.Count Property
SectionCurrent Property Not required anymore. SectionCollection Property
SectionFormatDialog Method TextControl.SectionFormatDialog Method
SectionInsert Method SectionCollection.Add Method

Control Styles and Mode Settings

ActiveX Property/Method/Event .NET Class/Property/Method/Event
BackColor Property TextControl.BackColor Property
BackStyle Property Set the TextControl.BackColor Property to Color.Transparent.
BorderStyle Property TextControl.BorderStyle Property
ClipChildren Property Not supported in Text Control.NET.
ClipSiblings Property Not supported in Text Control.NET.
ControlChars Property TextControl.ControlChars Property
EditMode Property TextControl.EditMode Property
Enabled Property TextControl.Enabled Property
HideSelection Property TextControl.HideSelection Property
InsertionMode Property TextControl.InsertionMode Property
LockWindowUpdate Property No longer necessary, because attributes are grouped through classes and can be applied in one step.
WordWrapMode Property Currently not implemented. Will be available in a future version.
AllowDrag Property TextControl.AllowDrag Property
AllowDrop Property TextControl.AllowDrop Property
DisplayColor Property TextControl.DisplayColors Property
EnableAutomationServer Method Use ServerTextControl class.
FontSettings Property FontSettings Property
PageViewStyle Property TextControl.DisplayColors Property

Line Operations

ActiveX Property/Method/Event .NET Class/Property/Method/Event
GetBaseLinePos Method Line.Baseline Property
GetCharFromLine Method Line.Start Property
GetLineCount Method LineCollection.Count Property
GetLineFromChar Method LineCollection.GetItem Property
GetLineFromPoint Method LineCollection.GetItem Property
GetLineRect Method Line.TextBounds Property

Using Text Controls without built-in Scroll Interface

ActiveX Property/Method/Event .NET Class/Property/Method/Event
AutoExpand Property AutoSize Class, TextControl.AutoControlSize Property.
AutoScroll Event Not supported in Text Control.NET.
CaretOut Event Not supported in Text Control.NET.
CaretOutBottom Event Not supported in Text Control.NET.
CaretOutLeft Event Not supported in Text Control.NET.
CaretOutRight Event Not supported in Text Control.NET.
CaretOutTop Event Not supported in Text Control.NET.
HExpand Event TextControl.HExpanded Event.
Move Event Not supported in Text Control.NET.
Size Event Not supported in Text Control.NET.
SizeMode Property Not supported in Text Control.NET.
VExpand Event TextControl.VExpanded Event.

Selections and Character Input

ActiveX Property/Method/Event .NET Class/Property/Method/Event
CaretWidth Property TextControl.CaretWidth Property.
Click Event TextControl.Click Event
CurrentInputPosition Property InputPosition Class, TextControl.InputPosition Property.
DblClick Event TextControl.DoubleClick Event
FormatSelection Property Selection Class, TextControl.Selection Property
InputPosFromPoint Method InputPosition Class, TextControl.InputPosition Property, TextCharCollection.GetItem method.
KeyDown Event TextControl.KeyDown Event
KeyPress Event TextControl.KeyPress Event
KeyStateChange Event Not supported in Text Control.NET.
KeyUp Event TextControl.KeyUp Event
MouseDown Event TextControl.MouseDown Event
MouseMove Event TextControl.MouseMove Event
MouseUp Event TextControl.MouseUp Event
MousePointer Property TextControl.Cursor Property
ParagraphChange Event InputParagraphChanged Event
PosChange Event InputPositionChanged Event
RTFSelText Property Selection.Load Method, Selection.Save Method
SelLength Property Selection.Length Property
SelStart Property Selection.Start Property.
SelText Property Selection.Text Property.
TabKey Property TextControl.AcceptsTab Property

Marked Text Fields

ActiveX Property/Method/Event .NET Class/Property/Method/Event
FieldAtInputPos Property TextFieldCollection.GetItem Method
FieldChangeable Property TextField.Editable Property
FieldChanged Event TextControl.TextFieldChanged Event
FieldClicked Event TextControl.TextFieldClicked Event
FieldCreated Event TextControl.TextFieldCreated Event
FieldCurrent Property No longer necessary, because the TextField class implements the properties for setting the attributes of a text field.
FieldData Property TextField.Name Property, TextField.ID Property
FieldDblClicked Event TextControl.TextFieldDoubleClicked Event
FieldDelete Method TextFieldCollection.Remove Method
FieldDeleteable Property TextField.Deleteable Property
FieldDeleted Event TextControl.TextFieldDeleted Event
FieldEditAttr Property TextField.DoubleClickEvent Property, TextField.DoubledInputPosition Property, TextField.ShowActivated Property
FieldEnd Property TextField.Length Property
FieldEntered Event TextControl.TextFieldEntered Event
FieldGoto Method TextField.ScrollTo Method
FieldInsert Method TextFieldCollection.Add Method
FieldLeft Event TextControl.TextFieldLeft Event
FieldNext Method TextFieldCollection Class (enumeration with for-each)
FieldPosX Property TextChar.Bounds Property, TextCharCollection.GetItem Method, TextField.Start Property.
FieldPosY Property TextChar.Bounds Property, TextCharCollection.GetItem Method, TextField.Start Property.
FieldSetCursor Event TextControl.FieldCursor Property
FieldStart Property TextField.Start Property
FieldText Property TextField.Text Property

Integrated Dialogboxes

ActiveX Property/Method/Event .NET Class/Property/Method/Event
FontDialog Method TextControl.FontDialog Method
FindReplace Method TextControl.Find Method, TextControl.Replace Method
ListAttrDialog Method TextControl.ListFormatDialog Method
ParagraphDialog Method TextControl.ParagraphFormatDialog Method
StyleDialog Method TextControl.FormattingStylesDialog Method
TabDialog Method TextControl.TabDialog Method
TableAttrDialog Method TextControl.TableFormatDialog Method

Handling XML Documents

ActiveX Property/Method/Event .NET Class/Property/Method/Event
XMLEditMode Property TextControl.XmlEditMode Property
XMLElement Object XmlElement Class
XMLElements Collection XmlElementCollection Class
XMLElements Property TextControl.GetXmlElements Method
XMLInvalid Event TextControl.XmlInvalid Event
XMLNotWellFormed Event TextControl.XmlNotWellFormed Event

Tool Bar Support

ActiveX Property/Method/Event .NET Class/Property/Method/Event
StatusBarHandle Property TextControl.StatusBar Property
RulerHandle Property TextControl.RulerBar Property
ButtonBarHandle Property TextControl.ButtonBar Property
ConnectTools Event No longer necessary, because a valid window handle must not be created for connecting a tool bar with a Text Control.
VerticalRulerHandle Property TextControl.VerticalRulerBar Property

Chains of Linked Text Controls

ActiveX Property/Method/Event .NET Class/Property/Method/Event
AutoLink Event Not supported in Text Control.NET.
NextWindow Property Not supported in Text Control.NET.

Multi-Language Support

ActiveX Property/Method/Event .NET Class/Property/Method/Event
Language Property The language is automatically selected through the system.
ResourceFile Property Implemented through satellite assemblies.

Miscellaneous

ActiveX Property/Method/Event .NET Class/Property/Method/Event
Error Event Implemented through exceptions.
GetTextExtent Method Not supported in Text Control.NET.
hWnd Property TextControl.Handle Property
Refresh Method TextControl.Refresh Method
ResetContents Method TextControl.ResetContents Method