public void InvertSelection()
        {
            var cmdtarget = this._client.GetCommandTargetPage();

            var active_page = cmdtarget.ActivePage;
            var shapes      = active_page.Shapes;

            if (shapes.Count < 1)
            {
                return;
            }

            SelectionCommands._invert_selection(cmdtarget.Application.ActiveWindow);
        }
Exemple #2
0
        public void Invert()
        {
            this._client.Application.AssertApplicationAvailable();
            this._client.Document.AssertDocumentAvailable();

            var application = this._client.Application.Get();
            var active_page = application.ActivePage;
            var shapes      = active_page.Shapes;

            if (shapes.Count < 1)
            {
                return;
            }

            SelectionCommands.Invert(application.ActiveWindow);
        }
Exemple #3
0
 public void InvertSelection(TargetWindow targetwindow)
 {
     targetwindow = targetwindow.ResolveToWindow(this._client);
     SelectionCommands._invert_selection(targetwindow.Window);
 }