DeactivateItem Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Deactivates the activated text frame and sets the input focus back to the text part that contains the text frame.
Syntax
public bool DeactivateItem();Public Function DeactivateItem() As BooleanReturn Value
The return value is true, if a text frame has been deactivated. Otherwise it is false.
Examples
The following example works with text frames in the current document by using TextFrameCollection.DeactivateItem.
TextFrameCollection textFrameCollection = textControl.TextFrames;
textFrameCollection.Add(new TextFrame(new System.Drawing.Size(3000, 1200)) { Name = "Callout", ID = 100 }, TextFrameInsertionMode.DisplaceText);
if (textFrameCollection.DeactivateItem())
{
Console.WriteLine("Deactivate Item completed successfully.");
}Dim textFrameCollection As TextFrameCollection = textControl.TextFrames
textFrameCollection.Add(New TextFrame(New System.Drawing.Size(3000, 1200)) With { .Name = "Callout", .ID = 100 }, TextFrameInsertionMode.DisplaceText)
If textFrameCollection.DeactivateItem() Then
Console.WriteLine("Deactivate Item completed successfully.")
End If