TX Text Control .NET for WPF

DeactivateItem Method

Method|Introduced in 23.0
Namespace
TXTextControl.DataVisualization
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Deactivates the activated drawing and sets the input focus back to the text part that contains the drawing.

Syntax

public bool DeactivateItem();

Return Value

The return value is true, if a drawing has been deactivated. Otherwise it is false.

Examples

The following example deactivates the current item in the drawing collection.

if (drawingCollection.DeactivateItem())
{
    Console.WriteLine("Deactivate Item completed successfully.");
}