IQuickInfoProvider Interface
Provides the base requirements for an object that can handle requests for display of an IntelliPrompt quick info popup.
public interface IQuickInfoProvider : IEditorViewPointerInputEventSink, IOrderable, IKeyedObject
Remarks
Objects implementing this provider interface can be registered as a service with an ISyntaxLanguage using the RegisterService(object, object) method. Any object implementing this interface will be called as needed by the language in priority order (based on IOrderable settings).
Methods
GetContext(IEditorView, int)
Returns an object describing the quick info context for the specified text offset
or null if no context is available.
object? GetContext(IEditorView view, int offset)
| Parameter | Type | Description |
|---|---|---|
| view | IEditorView | The IEditorView in which the offset is located. |
| offset | int | The text offset to examine. |
Returns
Remarks
This method is called in response to keyboard events.
GetContext(IHitTestResult)
Returns an object describing the quick info context for the specified IHitTestResult
or null if no context is available.
object? GetContext(IHitTestResult hitTestResult)
| Parameter | Type | Description |
|---|---|---|
| hitTestResult | IHitTestResult | The IHitTestResult to examine. |
Returns
Remarks
This method is called in response to mouse events.
RequestSession(IEditorView, object, bool)
Requests that an IQuickInfoSession be opened for the specified IEditorView.
bool RequestSession(IEditorView view, object context, bool canTrackPointer)
| Parameter | Type | Description |
|---|---|---|
| view | IEditorView | The IEditorView that will host the session. |
| context | object | A context object returned by GetContext(IHitTestResult). |
| canTrackPointer | bool | Whether to track pointer input and allow pointer movement/hovers to possibly open another quick info session. |
Returns
- bool:
trueif a session was opened; otherwise,false.
Inherited Members
- IEditorViewPointerInputEventSink.NotifyPointerEntered(IEditorView, InputPointerEventArgs)
- IEditorViewPointerInputEventSink.NotifyPointerExited(IEditorView, InputPointerEventArgs)
- IEditorViewPointerInputEventSink.NotifyPointerHovered(IEditorView, InputPointerEventArgs)
- IEditorViewPointerInputEventSink.NotifyPointerMoved(IEditorView, InputPointerEventArgs)
- IEditorViewPointerInputEventSink.NotifyPointerPressed(IEditorView, InputPointerButtonEventArgs)
- IEditorViewPointerInputEventSink.NotifyPointerReleased(IEditorView, InputPointerButtonEventArgs)
- IEditorViewPointerInputEventSink.NotifyPointerWheel(IEditorView, InputPointerWheelEventArgs)
- IOrderable.Orderings
- IKeyedObject.Key