TX Text Control .NET for Windows Forms

GetActivatedItem Method

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

Description

Returns the currently activated drawing. An activated drawing has the input focus and can be edited. The method returns null, if no drawing is activated.

Syntax

public DrawingFrame GetActivatedItem();

Return Value

The return value is null, if an activated drawing could not be found. Otherwise, it is an object of the type DataVisualization.DrawingFrame.

Examples

The following example retrieves activated item from the drawing collection.

var result = drawingCollection.GetActivatedItem();
Console.WriteLine($"Get Activated Item result: {result}");