I want to know how to select and unselect a Powerpoint shape programatically. I've tried this way to unselect a selected shape, but it doesn't work:

PowerPoint.Shape shape; .....

shape.Select(Office.MsoTriState.msoFalse);

没有正确的解决方案

其他提示

Sorry for not reading the function Select of PowerPoint.Shape. The Select function actually does one of two works:

1) The selection is added to the previous selection. 2) The default. The selection replaces any previous selection.

unselect : ActiveWindow.Selection.Unselect

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top