Compartilhar via


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 the list of completion builders that are part of this completion set.

Completions

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

DisplayName

Gets or sets the localized name of this completion set.

Moniker

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

SelectionStatus

Gets or sets the CompletionSelectionStatus.

WritableCompletionBuilders

Gets the ObservableCollection of writable completion builders.

WritableCompletions

Gets the ObservableCollection of writable completions.

Methods

Filter()

Filters the set of completions to those that match the applicability text of the completion set and determines the best match.

Filter(CompletionMatchType, Boolean)

Filters the set of completions to those that match the applicability text of the completion set and 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)

Redetermines the best matching completion in the completion set.

Events

SelectionStatusChanged

Occurs when the selection status has changed.

Applies to