TX Text Control WinForms 和 ActiveX 属性/方法/事件对比列表

发布时间:2013/09/28 00:09 发布者:jian

返回博客中心

TX Text Control 同时提供了 WinForms 和 ActiveX 两个平台的产品,为了更好的帮助用户从 ActiveX 升级到 WinForms 平台产品,这里给出两个平台中属性/方法/事件的对比列表。

1、文字格式

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
BaseLine 属性 TextControl.Baseline 属性, Selection.Baseline 属性
CharFormatChange 事件 TextControl.CharFormatChanged 事件
FontBold 属性 TextControl.Font 属性, Selection.Bold 属性
FontDialog 方法 TextControl.FontDialog 方法
FontItalic 属性 TextControl.Font 属性, Selection.Italic 属性
FontName 属性 TextControl.Font 属性, Selection.FontName 属性
FontSize 属性 TextControl.Font 属性, Selection.FontSize 属性
FontStrikethru 属性 TextControl.Font 属性, Selection.StrikeOut 属性
FontUnderline 属性 TextControl.Font 属性, Selection.Underline 属性
FontUnderlineStyle 属性 TextControl.FontUnderlineStyle 属性, Selection.Underline 属性
ForeColor 属性 TextControl.ForeColor 属性, Selection.ForeColor 属性
TextBkColor 属性 TextControl.TextBackColor 属性, Selection.TextBackColor 属性

2、段落格式

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
Alignment 属性 ParagraphFormat.Alignment 属性
FrameDistance 属性 ParagraphFormat.FrameDistance 属性
FrameLineWidth 属性 ParagraphFormat.FrameLineWidth 属性
FrameStyle 属性 ParagraphFormat.FrameStyle 属性
IndentB 属性 ParagraphFormat.BottomDistance 属性
IndentFL 属性 ParagraphFormat.LeftIndent 属性
IndentL 属性 ParagraphFormat.HangingIndent 属性
IndentR 属性 ParagraphFormat.RightIndent 属性
IndentT 属性 ParagraphFormat.TopDistance 属性
LineSpacing 属性 ParagraphFormat.LineSpacing 属性
LineSpacingT 属性 ParagraphFormat.AbsoluteLineSpacing 属性
ParagraphDialog 方法 TextControl.ParagraphFormatDialog 方法
ParagraphFormatChange 事件 TextControl.ParagraphFormatChanged 事件
TabCurrent 属性 不再需要,因为位置和Tab类型已经通过数组实现。
TabDialog 方法 TextControl.TabDialog 方法
TabPos 属性 ParagraphFormat.TabPositions 属性
TabType 属性 ParagraphFormat.TabTypes 属性

3、项目符号与编号

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
BulletAttribute 属性 ListFormat 类型, TextControl.ListFormat 属性, Selection.ListFormat 属性.
ListAttrDialog 方法 TextControl.FormattingStylesDialog 方法
ListType 属性 ListFormat.Type 属性
NumberingAttribute 属性 ListFormat 类型, TextControl.ListFormat 属性, Selection.ListFormat 属性.

4、页眉页脚

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
HeaderFooter 属性 TextControl.HeadersAndFooters 属性, HeaderFooterCollection 类型
HeaderFooterActivate 方法 HeaderFooter.Activate 方法, HeaderFooter.Deactivate 方法
HeaderFooterActivated 事件 TextControl.HeaderFooterActivated 事件
HeaderFooterDeactivated 事 TextControl.HeaderFooterDeactivated 事件
HeaderFooterPosition 属性 HeaderFooter.Distance 属性
HeaderFooterSelect 方法 不再需要,因为 HeaderFooter 类型提供了相应的属性。
HeaderFooterStyle 属性 TextControl.HeaderFooterActivationStyle 属性, TextControl.HeaderFooterFrameStyle 属性.

5、页面和文档设置

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
Change 事件 TextControl.Changed 事件
CurrentPages 属性 TextControl.Pages 属性
Device 属性 当前版本不支持该功能。
HScroll 事件 TextControl.HScroll 事件
PageFormatChange 事件 TextControl.PageFormatChanged 事件
PageHeight 属性 TextControl.PageSize 属性
PageMarginB 属性 TextControl.PageMargins 属性, PageMargins 类型
PageMarginL 属性 TextControl.PageMargins 属性, PageMargins 类型
PageMarginR 属性 TextControl.PageMargins 属性, PageMargins 类型
PageMarginT 属性 TextControl.PageMargins 属性, PageMargins 类型
PageWidth 属性 TextControl.PageSize 属性
ScrollBars 属性 TextControl.ScrollBars 属性
ScrollPosX 属性 TextControl.ScrollLocation 属性
ScrollPosY 属性 TextControl.ScrollLocation 属性
ViewMode 属性 TextControl.ViewMode 属性
VScroll 事件 TextControl.VScroll 事件

6、样式表

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
Style Object FormattingStyle 类型, InlineStyle 类型, ParagraphStyle 类型
StyleChanged 事件 TextControl.InputFormattingStyleChanged 事件
StyleCurrent 属性 Selection.FormattingStyle 属性
StyleDialog 方法 TextControl.FormattingStylesDialog 方法
StyleListChanged 事件 TextControl.FormattingStyleListChanged 事件
Styles Collection InlineStyleCollection 类型, ParagraphStyleCollection 类型
Styles 属性 TextControl.InlineStyles 属性, TextControl.ParagraphStyles 属性.

7、表格

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
TableAtInputPos 属性 TableCollection.GetItem 方法
TableAttrDialog 方法 TextControl.TableFormatDialog 方法
TableCanChangeAttr 属性 TableCollection.CanAdd 属性
TableCanDeleteColumn 属性 TableColumnCollection.CanRemove 属性
TableCanDeleteLines 属性 TableRowCollection.CanRemove 属性
TableCanInsert 属性 TableCollection.CanAdd 属性
TableCanInsertColumn 属性 TableColumnCollection.CanAdd 属性
TableCanInsertLines 属性 TableRowCollection.CanAdd 属性
TableCellAttribute 属性 TableCellFormat 类型, TableCell.CellFormat 属性, TableRow.CellFormat 属性, TableColumn.CellFormat 属性, TableCell.Width 属性, TableCell.Position 属性
TableCellLength 属性 TableCell.Length 属性
TableCellStart 属性 TableCell.Start 属性
TableCellText 属性 TableCell.Text 属性
TableColAtInputPos 属性 TableColumnCollection.GetItem 方法
TableColumns 属性 TablePartCollection.Count 属性
TableCreated 事件 TextControl.TableCreated 事件.
TableDeleteColumn 方法 TableColumnCollection.Remove 方法
TableDeleted 事件 TextControl.TableDeleted 事件.
TableDeleteLines 方法 TableRowCollection.Remove 方法
TableFormatChanged 事件 TextControl.TableFormatChanged 事件.
TableGridLines 属性 TableCollection.GridLines 属性
TableInsert 方法 TableCollection.Add 方法
TableInsertColumn 方法 TableColumnCollection.Add 方法
TableInsertLines 方法 TableRowCollection.Add 方法
TableNext 方法 TableCollection 类型
TableRowAtInputPos 属性 TableRowCollection.GetItem 方法
TableRows 属性 TablePartCollection.Count 属性

8、缩放

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
Zoomed 事件 TextControl.Zoomed 事件
ZoomFactor 属性 TextControl.ZoomFactor 属性

9、加载、保存和数据库支持

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
DataTextFormat 属性 Text Control.NET 不支持该属性。
Load 方法 TextControl.Load 方法, Selection.Load 方法.
LoadFromMemory 方法 TextControl.Load 方法, Selection.Load 方法.
LoadSaveAttribute 属性 LoadSettings 类型, SaveSettings 类型。
Save 方法 TextControl.Save 方法, Selection.Save 方法.
SaveToMemory 方法 TextControl.Save 方法, Selection.Save 方法.
SaveToMemoryBuffer 方法 TextControl.Save 方法, Selection.Save 方法.
Text 属性 TextControl.Text 属性, Selection.Text 属性

10、图片和OLE对象

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
ImageDisplayMode 属性 Text Control.NET 不支持该属性。
ImageExportFilename 属性 Image.ExportFileName 属性
ImageExportFilters 属性 ImageCollection.ExportFilters 属性
ImageExportFormat 属性 Image.ExportFilterIndex 属性
ImageFilename 属性 Image.FileName 属性
ImageFilters 属性 ImageCollection.ImportFilters 属性
ImageSaveMode 属性 Image.SaveMode 属性
ObjectClicked 事件 TextControl.ImageClicked 事件
ObjectCreated 事件 TextControl.ImageCreated 事件
ObjectCurrent 属性 不再需要,因为 Image 类型提供了这些属性。
ObjectDblClicked 事件 TextControl.ImageDoubleClicked 事件
ObjectDelete 方法 ImageCollection.Remove 方法
ObjectDeleted 事件 TextControl.ImageDeleted 事件
ObjectDistance 属性 Image.TextDistances 属性
ObjectGetData 事件 Text Control.NET 不支持该事件。
ObjectGethWnd 事件 Text Control.NET 不支持该事件。
ObjectGetZoom 事件 Text Control.NET 不支持该事件。
ObjectInsertAsChar 方法 ImageCollection.Add 方法
ObjectInsertFixed 方法 ImageCollection.Add 方法
ObjectItem 属性 Text Control.NET 不支持该属性。
ObjectMoved 事件 TextControl.ImageMoved 事件
ObjectNext 方法 ImageCollection 类型
ObjectPrint 事件 Text Control.NET 不支持该事件。
ObjectScaleX 属性 Image.HorizontalScaling 属性
ObjectScaleY 属性 Image.VerticalScaling 属性
ObjectScrollOut 事件 Text Control.NET 不支持该事件。
ObjectSetData 事件 Text Control.NET 不支持该事件。
ObjectSetZoom 事件 Text Control.NET 不支持该事件。
ObjectSized 事件 TextControl.ImageSized 事件
ObjectSizeMode 属性 Image.Moveable 属性, Image.Sizeable 属性
ObjectTextflow 属性 Image.InsertionMode 属性

11、超文本链接

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
FieldLinkClicked 事件 TextControl.HypertextLinkClicked 事件
FieldType 属性 DocumentLink 类型, DocumentTarget 类型, HypertextLink 类型, PageNumberField 类型
FieldTypeData 属性 DocumentLink.DocumentTarget 属性, DocumentTarget.TargetName 属性, HypertextLink.Target 属性, PageNumberField.NumberFormat 属性, PageNumberField.StartNumber 属性

12、剪贴板操作

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
CanCopy 属性 TextControl.CanCopy 属性
CanPaste 属性 TextControl.CanPaste 属性
Clip 方法 TextControl.Copy 方法, TextControl.Cut 方法, TextControl.Paste 方法

13、撤销

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
CanRedo 属性 TextControl.CanRedo 属性
CanUndo 属性 TextControl.CanUndo 属性
Redo 方法 TextControl.Redo 方法
Undo 方法 TextControl.Undo 方法

14、打印

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
PrintColors 属性 TextControl.Print 方法, PrintDocument.DafaultPageSettings.Color 属性
PrintDevice 属性 TextControl.Print 方法, PrintDocument.PrinterSettings.PrinterName
PrintDoc 方法 TextControl.Print 方法
PrintOffset 属性 Text Control.NET 不支持该属性。
PrintPage 方法 TextControl.Print 方法.
PrintZoom 属性 Text Control.NET 不支持该属性。

15、查找和替换

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
Find 方法 TextControl.Find 方法
FindReplace 方法 TextControl.Find 方法, TextControl.Replace 方法

16、控件样式和模式设置

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
BackColor 属性 TextControl.BackColor 属性
BackStyle 属性 Set the TextControl.BackColor 属性 to Color.Transparent.
BorderStyle 属性 TextControl.BorderStyle 属性
ClipChildren 属性 Text Control.NET 不支持该属性。
ClipSiblings 属性 Text Control.NET 不支持该属性。
ControlChars 属性 TextControl.ControlChars 属性
EditMode 属性 TextControl.EditMode 属性
Enabled 属性 TextControl.Enabled 属性
HideSelection 属性 TextControl.HideSelection 属性
InsertionMode 属性 TextControl.InsertionMode 属性
LockWindowUpdate 属性 不再需要。
WordWrapMode 属性 当前版本并不支持该功能。

17、行操作

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
GetBaseLinePos 方法 Line.Baseline 属性
GetCharFromLine 方法 Line.Start 属性
GetLineCount 方法 LineCollection.Count 属性
GetLineFromChar 方法 LineCollection.GetItem 属性
GetLineFromPoint 方法 LineCollection.GetItem 属性
GetLineRect 方法 Line.TextBounds 属性

18、不使用 Text Controls 内置的滚动接口

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
AutoExpand 属性 AutoSize Class, TextControl.AutoControlSize 属性.
AutoScroll 事件 Text Control.NET 不支持该属性。
CaretOut 事件 Text Control.NET 不支持该事件。
CaretOutBottom 事件 Text Control.NET 不支持该事件。
CaretOutLeft 事件 Text Control.NET 不支持该事件。
CaretOutRight 事件 Text Control.NET 不支持该事件。
CaretOutTop 事件 Text Control.NET 不支持该事件。
HExpand 事件 TextControl.HExpanded 事件.
Move 事件 Text Control.NET 不支持该事件。
Size 事件 Text Control.NET 不支持该事件。
SizeMode 属性 Text Control.NET 不支持该事件。
VExpand 事件 TextControl.VExpanded 事件.

19、选择和字符输入

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
CaretWidth 属性 TextControl.CaretWidth 属性.
Click 事件 TextControl.Click 事件
CurrentInputPosition 属性 InputPosition 类型, TextControl.InputPosition 属性.
DblClick 事件 TextControl.DoubleClick 事件
FormatSelection 属性 Selection 类型, TextControl.Selection 属性
InputPosFromPoint 方法 InputPosition 类型, TextControl.InputPosition 属性, TextCharCollection.GetItem 方法.
KeyDown 事件 TextControl.KeyDown 事件
KeyPress 事件 TextControl.KeyPress 事件
KeyStateChange 事件 Text Control.NET 不支持该事件。
KeyUp 事件 TextControl.KeyUp 事件
MouseDown 事件 TextControl.MouseDown 事件
MouseMove 事件 TextControl.MouseMove 事件
MouseUp 事件 TextControl.MouseUp 事件
MousePointer 属性 TextControl.Cursor 属性
ParagraphChange 事件 InputParagraphChanged 事件
PosChange 事件 InputPositionChanged 事件
RTFSelText 属性 Selection.Load 方法, Selection.Save 方法
SelLength 属性 Selection.Length 属性
SelStart 属性 Selection.Start 属性.
SelText 属性 Selection.Text 属性.
TabKey 属性 TextControl.AcceptsTab 属性

20、标记文本域

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
FieldAtInputPos 属性 TextFieldCollection.GetItem 方法
FieldChangeable 属性 TextField.Editable 属性
FieldChanged 事件 TextControl.TextFieldChanged 事件
FieldClicked 事件 TextControl.TextFieldClicked 事件
FieldCreated 事件 TextControl.TextFieldCreated 事件
FieldCurrent 属性 不再需要,因为 TextField 类型提供了相应的属性。
FieldData 属性 TextField.Name 属性, TextField.ID 属性
FieldDblClicked 事件 TextControl.TextFieldDoubleClicked 事件
FieldDelete 方法 TextFieldCollection.Remove 方法
FieldDeleteable 属性 TextField.Deleteable 属性
FieldDeleted 事件 TextControl.TextFieldDeleted 事件
FieldEditAttr 属性 TextField.DoubleClickEvent 属性, TextField.DoubledInputPosition 属性, TextField.ShowActivated 属性
FieldEnd 属性 TextField.Length 属性
FieldEntered 事件 TextControl.TextFieldEntered 事件
FieldGoto 方法 TextField.ScrollTo 方法
FieldInsert 方法 TextFieldCollection.Add 方法
FieldLeft 事件 TextControl.TextFieldLeft 事件
FieldNext 方法 TextFieldCollection 类型
FieldPosX 属性 TextChar.Bounds 属性, TextCharCollection.GetItem 方法, TextField.Start 属性.
FieldPosY 属性 TextChar.Bounds 属性, TextCharCollection.GetItem 方法, TextField.Start 属性.
FieldSetCursor 事件 TextControl.FieldCursor 属性
FieldStart 属性 TextField.Start 属性
FieldText 属性 TextField.Text 属性

21、集成对话框

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
FontDialog 方法 TextControl.FontDialog 方法
FindReplace 方法 TextControl.Find 方法, TextControl.Replace 方法
ListAttrDialog 方法 TextControl.ListFormatDialog 方法
ParagraphDialog 方法 TextControl.ParagraphFormatDialog 方法
StyleDialog 方法 TextControl.FormattingStylesDialog 方法
TabDialog 方法 TextControl.TabDialog 方法
TableAttrDialog 方法 TextControl.TableFormatDialog 方法

22、XML文档处理

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
XMLEditMode 属性 TextControl.XmlEditMode 属性
XMLElement Object XmlElement 类型
XMLElements Collection XmlElementCollection 类型
XMLElements 属性 TextControl.GetXmlElements 方法
XMLInvalid 事件 TextControl.XmlInvalid 事件
XMLNotWellFormed 事件 TextControl.XmlNotWellFormed 事件

23、工具栏支持

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
StatusBarHandle 属性 TextControl.StatusBar 属性
RulerHandle 属性 TextControl.RulerBar 属性
ButtonBarHandle 属性 TextControl.ButtonBar 属性
ConnectTools 事件 不再需要。

24、Text Controls中的连接链

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
AutoLink 事件 Text Control.NET 不支持该事件。
NextWindow 属性 Text Control.NET 不支持该属性。

25、多语言支持

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
Language 属性 会根据操作系统的语言设置进行自动选择。
ResourceFile 属性 通过资源程序集实现。

26、其它

ActiveX 属性/方法/事件 .NET 类型/属性/方法/事件
Error 事件 通过 .NET 中的异常机制实现。
GetTextExtent 方法 Text Control.NET 不支持该方法。
hWnd 属性 TextControl.Handle 属性
Refresh 方法 TextControl.Refresh 方法
ResetContents 方法 TextControl.ResetContents 方法


关于葡萄城

赋能开发者!葡萄城是专业的集开发工具、商业智能解决方案、低代码开发平台于一身的软件和服务提供商,为超过 75% 的全球财富 500 强企业提供服务。葡萄城专注控件软件领域30年,希望通过模块化的开发控件、灵活的低代码应用开发平台等一系列开发工具、解决方案和服务,帮助开发者快速响应复杂多变的业务需求,最大程度地发挥开发者的才智和潜能,让开发者的 IT 人生更从容更美好。

了解详情,请访问葡萄城官网