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.

Activate()

public bool Activate();

Return Value

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

Examples

The following example shows how to use the TXTextControl.DataVisualization.DrawingFrame.Activate method.

TXTextControl.Drawing.TXDrawingControl myDrawingControl = new TXTextControl.Drawing.TXDrawingControl();
TXTextControl.DataVisualization.DrawingFrame drawingFrame = new TXTextControl.DataVisualization.DrawingFrame(myDrawingControl);

drawingFrame.Activate(); // here, the Activate method is used
drawingFrame.ExportCompressionQuality = 100;
drawingFrame.ExportFileName = "";
drawingFrame.ExportFilterIndex = 1;
drawingFrame.ExportResolution = 100;
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto;

textControl1.Drawings.Add(drawingFrame, -1);