Partager via


Completion2 Class

Adds an additional context icon to the completion.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Language.Intellisense.Completion
    Microsoft.VisualStudio.Language.Intellisense.Completion2

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

Syntax

'Declaration
Public Class Completion2 _
    Inherits Completion
public class Completion2 : Completion
public ref class Completion2 : public Completion
type Completion2 =  
    class 
        inherit Completion 
    end
public class Completion2 extends Completion

The Completion2 type exposes the following members.

Constructors

  Name Description
Public method Completion2() Initializes a new instance of Completion2.
Public method Completion2(String, String, String, ImageSource, String) Initializes a new instance of Completion2.
Public method Completion2(String, String, String, ImageSource, String, IEnumerable<CompletionIcon>) Initializes a new instance of Completion2 with the specified text and icon.

Top

Properties

  Name Description
Public property AttributeIcons
Public property Description Gets a description that can be displayed together with the display text of the completion. (Inherited from Completion.)
Public property DisplayText Gets the text that is to be displayed by an IntelliSense presenter. (Inherited from Completion.)
Public property IconAutomationText Gets or sets the text to be used as the automation name for the icon when it is displayed. (Inherited from Completion.)
Public property IconSource Gets or sets an icon that could be used to describe the completion. (Inherited from Completion.)
Public property InsertionText Gets the text that is to be inserted into the buffer if this completion is committed. (Inherited from Completion.)
Public property Properties Gets the properties of the completion. (Inherited from 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 the default hash function. (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

Remarks

Introduced in Visual Studio 2013 Update 2. To reference the correct assembly version, see Referencing Assemblies Delivered in the Visual Studio 2013 SDK Update 2.

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