避免/跳过删除 visio 中的形状

发布于 2024-12-19 03:07:59 字数 160 浏览 0 评论 0原文

如果形状与其他形状重叠,我想跳过删除该形状。

那么知道在哪种情况下我应该这样做吗?

我尝试使用

QueryCancelSelectionDelete(ByVal Selection As IVSelection) 来执行此操作,但我无法检测到正在删除哪个形状

I want skip deleting a shape if it overlaps with other shape.

so any idea in which event i should do this?

i tried to do that using,

QueryCancelSelectionDelete(ByVal Selection As IVSelection) but i can't detect which shape is being deleted

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷弦 2024-12-26 03:07:59

Selection 对象是调用 QueryCancelSelectionDelete 时将要删除的形状的集合。除非取消删除,否则选择对象中的所有形状都将被删除。

您可以取消该事件,但不会删除任何选定的形状。

也许您可以以编程方式删除选择中您不想跳过的其他形状...

(尽管如果您尝试这样做,您必须小心,不要在事件处理程序中再次调用您您自己的删除操作...)

The Selection object is the collection of shapes that are going to be deleted when QueryCancelSelectionDelete is invoked. All of the shapes in the Selection object will be deleted unless you cancel the delete.

You can cancel the event, but then none of the selected shapes will be deleted.

Perhaps you could then programatically delete the other shapes in the selection that you didn't want to skip...

(Although if you try that, you'll have to be careful that you don't get called again in your event handler by your own delete action...)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文