Completion Class

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


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

public class Completion : IPropertyOwner

The Completion type exposes the following members.

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

Public propertyDescriptionGets a description that can be displayed together with the display text of the completion.
Public propertyDisplayTextGets the text that is to be displayed by an IntelliSense presenter.
Public propertyIconAutomationTextGets or sets the text to be used as the automation name for the icon when it is displayed.
Public propertyIconSourceGets or sets an icon that could be used to describe the completion.
Public propertyInsertionTextGets the text that is to be inserted into the buffer if this completion is committed.
Public propertyPropertiesGets the properties of the completion.

Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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

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

Community Additions