VBCompletionProvider Class
Provides IntelliPrompt completion data for the Visual Basic
language.
public class VBCompletionProvider : DotNetCompletionProviderBase, ICompletionProvider, IOrderable, IKeyedObject, IEditorDocumentTextChangeEventSink
- Inheritance:
- Object CompletionProviderBase DotNetCompletionProviderBase Object
Constructors
VBCompletionProvider()
Initializes a new instance of the VBCompletionProvider
class.
public VBCompletionProvider()
Methods
CreateContext(IEditorView)
Creates an IDotNetContext for the caret's offset in the specified IEditorView.
protected override 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.
OnDocumentTextChanged(SyntaxEditor, EditorSnapshotChangedEventArgs)
Occurs after a text change occurs to an IEditorDocument that uses this language.
protected virtual void OnDocumentTextChanged(SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
editor | SyntaxEditor | The SyntaxEditor whose IEditorDocument is changed. |
e | EditorSnapshotChangedEventArgs | The |
OnDocumentTextChanging(SyntaxEditor, EditorSnapshotChangingEventArgs)
Occurs before a text change occurs to an IEditorDocument that uses this language.
protected virtual void OnDocumentTextChanging(SyntaxEditor editor, EditorSnapshotChangingEventArgs e)
Parameter | Type | Description |
---|---|---|
editor | SyntaxEditor | The SyntaxEditor whose IEditorDocument that is changing. |
e | EditorSnapshotChangingEventArgs | The |
RequestSession(IEditorView, Boolean)
Requests that an ICompletionSession be opened for the specified IEditorView.
public override bool RequestSession(IEditorView view, bool canCommitWithoutPopup)
Parameter | Type | Description |
---|---|---|
view | IEditorView | The IEditorView that will host the session. |
canCommitWithoutPopup | Boolean | Whether the session can immediately commit if a single match is made when the session is opened, commonly known as "complete word" functionality. |
Returns
- Boolean:
true
if a session was opened; otherwise,false
.
ShouldShowForTypedWordStart(IEditorView)
Returns whether the specified IEditorView supports automatic completion list display at its current caret location.
public override bool ShouldShowForTypedWordStart(IEditorView view)
Parameter | Type | Description |
---|---|---|
view | IEditorView | The IEditorView to examine. |
Returns
- Boolean:
true
if automatic completion list display is supported; otherwise,false
.
Explicit Interface Implementations
IEditorDocumentTextChangeEventSink.NotifyDocumentTextChanged(SyntaxEditor, EditorSnapshotChangedEventArgs)
Notifies after a text change occurs to an IEditorDocument.
void IEditorDocumentTextChangeEventSink.NotifyDocumentTextChanged(SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
editor | SyntaxEditor | The SyntaxEditor whose IEditorDocument is changed. |
e | EditorSnapshotChangedEventArgs | The |
IEditorDocumentTextChangeEventSink.NotifyDocumentTextChanging(SyntaxEditor, EditorSnapshotChangingEventArgs)
Notifies before a text change occurs to an IEditorDocument.
void IEditorDocumentTextChangeEventSink.NotifyDocumentTextChanging(SyntaxEditor editor, EditorSnapshotChangingEventArgs e)
Parameter | Type | Description |
---|---|---|
editor | SyntaxEditor | The SyntaxEditor whose IEditorDocument that is changing. |
e | EditorSnapshotChangingEventArgs | The |
Inherited Members
- DotNetCompletionProviderBase.OnSessionOpening(ICompletionSession)
- DotNetCompletionProviderBase.CanShowOnTypedWordStart
- CompletionProviderBase.Key
- CompletionProviderBase.Orderings
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()