Share via


CompletionSet Class

Represents a set of completions.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Language.Intellisense.CompletionSet

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

Syntax

'Declaration
Public Class CompletionSet
public class CompletionSet
public ref class CompletionSet
type CompletionSet =  class end
public class CompletionSet

The CompletionSet type exposes the following members.

Constructors

  Name Description
Public method CompletionSet() Initializes a new instance of CompletionSet.
Public method CompletionSet(String, String, ITrackingSpan, IEnumerable<Completion>, IEnumerable<Completion>) Initializes a new instance of CompletionSet with the specified name and text.

Top

Properties

  Name Description
Public property ApplicableTo Gets or sets the text tracking span to which this completion applies.
Public property CompletionBuilders Gets or sets the list of completion builders that are part of this completion set.
Public property Completions Gets or sets the list of completions that are part of this completion set.
Public property DisplayName Gets or sets the localized name of this completion set.
Public property Moniker Gets the unique, non-localized identifier for the completion set.
Public property SelectionStatus Gets or sets the CompletionSelectionStatus.
Protected property WritableCompletionBuilders Gets the collection of writable completion builders.
Protected property WritableCompletions Gets the collection of writable completions.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Filter() Restricts the set of completions to those that match the applicability text of the completion set, and then determines the best match.
Protected method Filter(CompletionMatchType, Boolean) Restricts the set of completions to those that match the applicability text of the completion set, and then determines the best match.
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 MatchCompletionList Matches the completion list.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Recalculate Recalculates the set of completions for this completion set.
Public method SelectBestMatch() Determines the best match in the completion set.
Protected method SelectBestMatch(CompletionMatchType, Boolean) Determines the best match in the completion set for the given match type.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event SelectionStatusChanged Raised when the selection status has changed.

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