TXTextControl.Web.TextPartCollection.Activate Method

Sets the input focus to the specified text part. If the activated text part is not in the visible part of the document, the document is scrolled.

Syntax

[C#]
public bool Activate(Web.IFormattedText textPart);
[Visual Basic]
Public Function Activate(TextPart As Web.IFormattedText) As Boolean
Parameter Description
textPart

Specifies the text part to activate. Must be an object of the type Web.MainText, Web.TextFrame or Web.HeaderFooter.

Return Value

The return value is true, if the specified text part could be activated. Otherwise it is false.

See Also