Condividi tramite


Declarations Members

Include Protected Members
Include Inherited Members

Manages a list of declarations to be shown in an IntelliSense drop-down list.

The Declarations type exposes the following members.

Constructors

  Name Description
Protected method Declarations Initializes a new instance of the Declarations class.

Top

Methods

  Name Description
Public method Dispose Frees any resources allocated by the class just before the class object is destroyed.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBestMatch Determines the best completion match for the specified value.
Public method GetCount When implemented in a derived class, gets the number of items in the list of declarations.
Public method GetDescription When implemented in a derived class, gets a description of the specified item.
Public method GetDisplayText When implemented in a derived class, gets the text to be displayed in the completion list for the specified item.
Public method GetGlyph When implemented in a derived class, gets the image to show next to the specified item.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetInitialExtent Returns the initial extent of the text to be completed.
Public method GetName When implemented in a derived class, gets the name or text to be inserted for the specified item.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsCommitChar Determines whether the specified character can be used to complete the specified text.
Public method IsMatch Determines whether the specified text matches some or all of the specified item.
Public method IsPerfectMatch
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnAutoComplete Called after the declaration has been committed to the source file. When implemented in a derived class, it provides a completion character which may itself be a trigger for another round of IntelliSense.
Public method OnCommit Called to commit the specified item to the source file.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Properties

  Name Description
Public property LastBestMatch Gets or sets the name of the item that best matches what has been typed so far.

Top

See Also

Reference

Declarations Class

Microsoft.VisualStudio.Package Namespace