Set annotation location

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

missionRoom
Posts: 17
Joined: Wed Jan 22, 2020 4:38 pm

Re: Set annotation location

Post by missionRoom »

I have now fixed it, moved the CanMove = false, etc, to the AnnotationBuildingFinished event. Now works as expected. Thanks for your help

Code: Select all

private void annotationViewer_AnnotationBuildingFinished(object sender, AnnotationViewEventArgs e)
{
    if (e.AnnotationView != null)
    {
        // Prevent the interation controllers from showing, since they can't be used till a tool is unselected
        e.AnnotationView.CanMove = false;
        e.AnnotationView.CanResize = false;
        e.AnnotationView.CanRotate = false;
    }
}
Post Reply