Ability to close code snippet session

SyntaxEditor for WPF Forum

Posted 8 years ago by Xinen Lee
Version: 16.1.0633

Hi Actipro

We are facing a scenario where we need to be able to control the close of a code snippet session.

Let's say we open a code snippet session, and while it is open, someone alters the state of the document such that it is in a readonly state. The code snippet session would still be open and displayed, when the user is no longer able to edit the document. In this case I would want to close the code snippet session when the the document is changed to a readonly state.

I believe you could close the session when the document is in a readonly state, however it would be far more useful and flexible for us to be able to additionally control the closing from our end as well.


Comments (2)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Xinen,

You can get any open sessions via:  SyntaxEditor.IntelliPrompt.Sessions.  The IntelliPrompt object there even has methods for closing all sessions, or you can look at individual sessions and Close() them.

Actipro Software Support

Posted 8 years ago by Xinen Lee

Ah that's great thank you!!

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.