共用方式為


Completion Class

Represents a completion item, including the icon, insertion text, and display text, in a CompletionSet.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Language.Intellisense.Completion

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'宣告
Public Class Completion _
    Implements IPropertyOwner
public class Completion : IPropertyOwner
public ref class Completion : IPropertyOwner
type Completion =  
    class
        interface IPropertyOwner
    end
public class Completion implements IPropertyOwner

The Completion type exposes the following members.

Constructors

  Name Description
Public method Completion() Initializes a new instance of Completion.
Public method Completion(String) Initializes a new instance of Completion with the specified display text.
Public method Completion(String, String, String, ImageSource, String) Initializes a new instance of Completion with the specified text and description.

Top

Properties

  Name Description
Public property Description Gets a description that can be displayed together with the display text of the completion.
Public property DisplayText Gets the text that is to be displayed by an IntelliSense presenter.
Public property IconAutomationText Gets or sets the text to be used as the automation name for the icon when it is displayed.
Public property IconSource Gets or sets an icon that could be used to describe the completion.
Public property InsertionText Gets the text that is to be inserted into the buffer if this completion is committed.
Public property Properties Gets the properties of the completion.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Examples

For an example of this class, see Walkthrough: Displaying Statement Completion.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Language.Intellisense Namespace