DotNetParameterInfoProviderBase Class
Provides an abstract base class for providing IntelliPrompt parameter info popups for .NET languages.
public abstract class DotNetParameterInfoProviderBase : ParameterInfoProviderBase, IParameterInfoProvider, IOrderable, IKeyedObject, IEditorViewSelectionChangeEventSink
- Inheritance:
- object ParameterInfoProviderBase object
Constructors
DotNetParameterInfoProviderBase(string)
Initializes a new instance of the DotNetParameterInfoProviderBase
class.
protected DotNetParameterInfoProviderBase(string key)
Parameter | Type | Description |
---|---|---|
key | string | The string-based key that identifies the provider. |
Methods
CreateContext(IEditorView)
Creates an IDotNetContext for the caret's offset in the specified IEditorView.
protected abstract IDotNetContext CreateContext(IEditorView view)
Parameter | Type | Description |
---|---|---|
view | IEditorView | The IEditorView to examine. |
Returns
- IDotNetContext:
An IDotNetContext for the caret's offset in the specified IEditorView.
OnSessionOpening(IParameterInfoSession)
Allows an inheritor to modify, filter and sort automatically-generated items before the specified IParameterInfoSession is opened and displayed to the end user. The session may also be cancelled.
protected virtual bool OnSessionOpening(IParameterInfoSession session)
Parameter | Type | Description |
---|---|---|
session | IParameterInfoSession | The IParameterInfoSession about to be opened. |
Returns
- bool:
true
if the session is allowed to open; otherwise,false
.
OnViewSelectionChanged(IEditorView, EditorViewSelectionEventArgs)
Occurs when the selection is changed in the specified IEditorView.
protected virtual void OnViewSelectionChanged(IEditorView view, EditorViewSelectionEventArgs e)
Parameter | Type | Description |
---|---|---|
view | IEditorView | The IEditorView that received the event. |
e | EditorViewSelectionEventArgs | The |
UpdateCurrentParameter(IParameterInfoSession, IDotNetContext)
Updates the current parameter in the session's signatures, based on information in the specified IDotNetContext.
protected virtual bool UpdateCurrentParameter(IParameterInfoSession session, IDotNetContext context)
Parameter | Type | Description |
---|---|---|
session | IParameterInfoSession | The IParameterInfoSession to update. |
context | IDotNetContext | The IDotNetContext to examine. |
Returns
- bool:
true
if an update was made; otherwise,false
.