共用方式為


ViewFilter.IsExpansionUIActive Property

Determines if the code snippet expansion user interface (UI) is active.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property IsExpansionUIActive As Boolean
public virtual bool IsExpansionUIActive { get; }
public:
virtual property bool IsExpansionUIActive {
    bool get ();
}
abstract IsExpansionUIActive : bool with get 
override IsExpansionUIActive : bool with get
function get IsExpansionUIActive () : boolean

Property Value

Type: Boolean
If the expansion UI is active, returns true; otherwise, returns false.

Remarks

When a code snippet is inserted, the editor can change to special mode where the snippet can be modified in place. This special mode allows the user to select different values for an insertion field and tab between the insertion fields. While this expansion mode is active, any other command that language service might support is bypassed.

The base method obtains the IVsTextViewEx interface from the IVsTextView object that was passed to the ViewFilter class constructor. The base method then calls the IsExpansionUIActive method on the IVsTextViewEx interface to determine if the expansion UI is active.

.NET Framework Security

See Also

Reference

ViewFilter Class

Microsoft.VisualStudio.Package Namespace