获取 Visual Studio 序列图的 IMonitorSelectionService 实例
我正在尝试创建一个与序列图设计器一起工作的 Visual Studio 扩展,并且我希望能够注册一个事件,只要图表上的选择发生更改,该事件就会通知我。 IMonitorSelectionService 界面似乎提供了这样的功能一个事件,但我不知道如何从 VSPackage 获取此服务的实例。
我需要做什么才能获取此服务的实例,或者是否有其他更容易访问的事件可供我使用?
I'm trying to create a Visual Studio extension that works alongside the Sequence Diagram Designer, and I'd like to be able to register for an event that will notify me whenever the selection changes on the diagram. The IMonitorSelectionService interface appears to offer such an event, but I don't know how to get an instance of this service from a VSPackage.
What do I need to do in order to get an instance of this service, or is there some other more easily accessible event that I could use instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够执行以下操作:
其中 store 是 Store您感兴趣的图表。
You should be able to do the following:
Where store is the Store of the diagram you're interested in.