TX Text Control .NET for WPF

Activate 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

Activates the drawing so that its contents can be edited. A drawing can only be activated, if the text part that contains the drawing has the input focus.

Syntax

public bool Activate();

Return Value

The return value is true, if the drawing could be activated. Otherwise it is false.

Examples

The following example activates the drawing frame.

if (drawingFrame.Activate())
{
    Console.WriteLine("Activate completed successfully.");
}