CompletionSet Class

Definition

Represents a set of completions.

public ref class CompletionSet
[Windows::Foundation::Metadata::WebHostHidden]
class CompletionSet
public class CompletionSet
type CompletionSet = class
Public Class CompletionSet
Inheritance
CompletionSet
Derived

Examples

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

Constructors

CompletionSet()

Initializes a new instance of CompletionSet.

CompletionSet(String, String, ITrackingSpan, IEnumerable<Completion>, IEnumerable<Completion>)

Initializes a new instance of CompletionSet with the specified name and text.

Properties

ApplicableTo

Gets or sets the text tracking span to which this completion applies.

CompletionBuilders

Gets or sets the list of completion builders that are part of this completion set.

Completions

Gets or sets the list of completions that are part of this completion set.

DisplayName

Gets or sets the localized name of this completion set.

Moniker

Gets the unique, non-localized identifier for the completion set.

SelectionStatus

Gets or sets the CompletionSelectionStatus.

WritableCompletionBuilders

Gets the collection of writable completion builders.

WritableCompletions

Gets the collection of writable completions.

Methods

Filter()

Restricts the set of completions to those that match the applicability text of the completion set, and then determines the best match.

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.

GetHighlightedSpansInDisplayText(String)

Returns a list of spans (of character positions) that should be highlighted in the display text.

MatchCompletionList(IList<Completion>, CompletionMatchType, Boolean)

Matches the completion list.

Recalculate()

Recalculates the set of completions for this completion set.

SelectBestMatch()

Determines the best match in the completion set.

SelectBestMatch(CompletionMatchType, Boolean)

Determines the best match in the completion set for the given match type.

Events

SelectionStatusChanged

Raised when the selection status has changed.

Applies to