Server Programming

Technical Articles

Text Control can be enabled to work as an automation server in scripting engines such as Windows Scripting Host or Internet Information Server. Text Control offers the EnableAutomationServer method that must be called first after creating the automation object.

All Text Control properties and methods can be used with the exception of those needing a visible surface like dialog boxes, toolbars and all features manipulating the display of a document.

Property Overview

The following is a list of properties and methods that cannot be used when Text Control works as an automation server:

Property/Method Description
BackStyle Property Returns or sets a value indicating whether the background of a Text Control is transparent or opaque.
ButtonBarHandle Property Specifies the button bar control to be used with a Text Control.
CanCopy Property Informs whether a part of a Text Control's document has been selected and can be copied to the clipboard.
CanPaste Property Informs whether the clipboard contains a format that can be pasted into a Text Control's document.
Clip Method Performs clipboard operations.
ClipChildren Property Determines whether child controls are excluded from the update area.
ClipSiblings Property Determines whether sibling controls are excluded from the update area.
ControlChars Property Specifies whether control characters are visible.
DataText Property Enables a Text Control to be used as a bound control.
DataTextFormat Property Determines the data format when Text Control is used as a bound control.
Enabled Property Returns or sets a value that determines whether a Text Control can respond to user-generated events.
FindReplace Method Displays a 'Find' or 'Replace' dialog box.
FontDialog Method Invokes Text Control's built-in font dialog box.
GetLineFromPoint Method Returns the index of the line which contains a given point.
hWnd Property Returns a handle to a Text Control.
InputPosFromPoint Method Returns the text input position belonging to a certain geometric position.
ListAttrDialog Method Invokes Text Control's built-in dialog box to set the attributes of bulleted and numbered lists.
LockWindowUpdate Property Disables or reenables redrawing.
MousePointer Property Returns or sets a value indicating the type of mouse pointer.
ParagraphDialog Method Invokes Text Control's built-in paragraph attributes dialog box.
Refresh Method Forces a complete repaint of a Text Control.
RulerHandle Property Specifies the horizontal ruler control to be used with a Text Control.
VerticalRulerHandle Property Specifies the vertical ruler control to be used with a Text Control.
SaveToMemory Method Returns a byte array containing text data in a specified format. Use SaveToMemoryBuffer instead.
ScrollBars Property Returns or sets a value indicating whether a Text Control has horizontal or vertical scroll bars.
ScrollPosX Property Specifies the position of the horizontal scroll bar.
ScrollPosY Property Specifies the position of the vertical scroll bar.
SizeMode Property Specifies whether the Text Control can be moved or resized at run time.
StatusBarHandle Property Specifies the status bar control to be used with a Text Control.
StyleDialog Method Invokes the built-in dialog box for creating, deleting and modifying formatting styles.
TabDialog Method Invokes the built-in dialog box that enables tabs to be set.
TableAttrDialog Method Invokes Text Control's built-in table attributes dialog box.
TableInsertDialog Method Invokes Text Control's built-in table insert dialog box.
PageNumberDialog Method Invokes Text Control's built-in dialog box for setting formatting attributes of pagenumbers.
ZoomFactor Property Specifies the zoom factor for a Text Control.
FormFieldDialog Method Invokes Text Control's built-in dialog box for setting formatting attributes of form fields.