Implements a quick info provider that displays quick info tips for collapsed regions of text.
- Inheritance:
-
object
Quick
Info objectProvider Base
Remarks
Instances of this object can be registered with an ISyntax
Constructors
CollapsedRegionQuickInfoProvider()
Initializes a new instance of the CollapsedRegionQuickInfoProvider
class.
Properties
ContextTypes
Gets the context Type
objects that are supported by this provider, which are the list of custom types
that are possibly returned by the Get
Property Value
- IEnumerable<Type>:
The context
Type
objects that are supported by this provider.
IsSyntaxHighlightingEnabled
Gets or sets whether syntax highlighting is enabled in the quick info content.
Property Value
- bool:
true
if syntax highlighting is enabled in the quick info content; otherwise,false
. The default value istrue
.
Methods
GetContent(IEditorView, TextSnapshotRange)
Returns the content to display in the quick info tip for the specified Text
Parameter | Type | Description |
---|---|---|
view | IEditor |
The IEditor |
snapshotRange | Text |
The Text |
Returns
- object:
The content to display in the quick info tip for the specified Text
Snapshot .Range
GetContext(IEditorView, int)
Returns an object describing the quick info context for the specified text offset, if any.
Parameter | Type | Description |
---|---|---|
view | IEditor |
The IEditor |
offset | int | The text offset to examine. |
Returns
- object:
An object describing the quick info context for the specified text offset, if any. A
null
value indicates that no context is available.
Remarks
This method is called in response to keyboard events.
GetContext(IHitTestResult)
Returns an object describing the quick info context for the specified IHit
Parameter | Type | Description |
---|---|---|
hitTestResult | IHit |
The IHit |
Returns
- object:
An object describing the quick info context for the specified IHit
Test , if any. AResult null
value indicates that no context is available.
Remarks
This method is called in response to mouse events.
RequestSession(IEditorView, object)
Requests that an IQuick
Parameter | Type | Description |
---|---|---|
view | IEditor |
The IEditor |
context | object | A context object returned by Get |
Returns
- bool:
true
if a session was opened; otherwise,false
.
Inherited Members
-
Quick
Info Provider Base. Request Session(IEditor View, object, bool) -
Quick
Info Provider Base. Can Track Pointer Input -
Quick
Info Provider Base. Key -
Quick
Info Provider Base. Orderings -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()