Provides the base requirements for an object that represents an IntelliPrompt session.
Properties
Bounds
Gets the view-relative bounds of the session's open popup, if available.
Property Value
- Rect?:
The view-relative bounds of the session's open popup, if available.
ClosesOnLostFocus
Returns whether this session auto-closes when the editor or any IntelliPrompt popups lose focus.
Property Value
- bool:
true
if this session auto-closes when the editor or any IntelliPrompt popups lose focus; otherwise,false
.
IsOpen
Gets whether the session is currently open.
Property Value
- bool:
true
if the session is currently open; otherwise,false
.
SessionType
Gets the IIntelli
Property Value
- IIntelli
Prompt :Session Type The IIntelli
Prompt that identifies the type of session.Session Type
SnapshotRange
Gets the Text
Property Value
- Text
Snapshot :Range The Text
Snapshot containing the original TextRange Range in the ITextSnapshot that triggered the session.
Remarks
This member should only be used while the session is open.
View
Gets the IEditor
Property Value
- IEditor
View : The IEditor
View in which the session is opened.
Remarks
This member should only be used while the session is open.
Methods
Close(bool)
Closes the session.
Parameter | Type | Description |
---|---|---|
cancelled | bool | Whether the session was closed due to a cancellation. |
Open(IEditorView, TextRange)
Opens the session, attaching to the specified IEditor
Parameter | Type | Description |
---|---|---|
view | IEditor |
The IEditor |
textRange | Text |
The source Text |
Reposition()
Notifies the session that it should reposition its user interface.
Events
Closed
Occurs when the session is closed, with the Cancel
flag on the event arguments indicating whether
the close was due to a cancellation.
Event Type
Opened
Occurs when the session is opened.
Event Type
Inherited Members
-
IService
Locator. Get All Service Types() - IServiceLocator.GetService<T>()
-
IService
Locator. Get Service(object) - IServiceLocator.RegisterService<T>(T)
-
IService
Locator. Register Service(object, object) - IServiceLocator.UnregisterService<T>()
-
IService
Locator. Unregister Service(object) -
IService
Locator. Sync Root -
IService
Locator. Service Added -
IService
Locator. Service Removed