共用方式為


CompletionExpander Class

Definition

Identifies an expander that adds CompletionItems that reference it to the list of completions.

public ref class CompletionExpander : Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionFilter
[System.Diagnostics.DebuggerDisplay("+ {DisplayText}")]
public class CompletionExpander : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionFilter
[<System.Diagnostics.DebuggerDisplay("+ {DisplayText}")>]
type CompletionExpander = class
    inherit CompletionFilter
Public Class CompletionExpander
Inherits CompletionFilter
Inheritance
CompletionExpander
Attributes

Examples

static CompletionExpander MyExpander = new CompletionFilter("Additional items", "a", MyAdditionalItemsImageElement);

Remarks

Expander apperars in the UI alongside CompletionFilters, but behaves differently: When CompletionFilter is selected, then CompletionItems that don't reference it are hidden When CompletionExpander is selected, then CompletionItems that reference it are visible When no CompletionFilters are selected, then all CompletionItems that don't reference an expander are visible When no CompletionExpanders are selected, then all CompletionItems reference an expander are hidden

These instances should be singletons. All CompletionItems that should be filtered using the same expander button must use the same reference to the instance of CompletionExpander.

Constructors

CompletionExpander(String, String, ImageElement)

Constructs an instance of CompletionExpander.

Properties

AccessKey

Key used in a keyboard shortcut that toggles this filter.

(Inherited from CompletionFilter)
DisplayText

Localized name of this filter.

(Inherited from CompletionFilter)
Image

ImageElement that represents this filter.

(Inherited from CompletionFilter)

Events

PropertyChanged (Inherited from CompletionFilter)

Applies to