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 | |
---|---|---|
Completion() | Initializes a new instance of Completion. | |
Completion(String) | Initializes a new instance of Completion with the specified display text. | |
Completion(String, String, String, ImageSource, String) | Initializes a new instance of Completion with the specified text and description. |
Top
Properties
Name | Description | |
---|---|---|
Description | Gets a description that can be displayed together with the display text of the completion. | |
DisplayText | Gets the text that is to be displayed by an IntelliSense presenter. | |
IconAutomationText | Gets or sets the text to be used as the automation name for the icon when it is displayed. | |
IconSource | Gets or sets an icon that could be used to describe the completion. | |
InsertionText | Gets the text that is to be inserted into the buffer if this completion is committed. | |
Properties | Gets the properties of the completion. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.