VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
/// <summary>
/// Determines that one mouse click must be used for activating the text box of text annotation.
/// </summary>
/// <param name="textAnnotationView">Text annotation.</param>
public void UseOneMouseClickForActivatingTextAnnotationTexBox(
Vintasoft.Imaging.Annotation.UI.TextAnnotationView textAnnotationView)
{
// get the rectangular transformer for text annotation from text annotation
Vintasoft.Imaging.Annotation.UI.VisualTools.UserInteraction.RectangularTextAnnotationTransformer rectangularTextAnnotationTransformer =
textAnnotationView.TextTransformer;
// get the text box transformer from the rectangular transformer for text annotation
Vintasoft.Imaging.UI.VisualTools.UserInteraction.TextObjectTextBoxTransformer textObjectTextBoxTransformer =
rectangularTextAnnotationTransformer.TextBoxTransformer;
// specify that text box must be shown when user clicked on text annotation
textObjectTextBoxTransformer.ActivateClickCount = 1;
}
More info about the text box transfomer please see in the TextObjectTextBoxTransformer class: