Click or drag to resize

CompletionItemRules Class



Rules for how the individual items are handled.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.CompletionCompletionItemRules

Namespace:  Microsoft.CodeAnalysis.Completion
Assembly:  Microsoft.CodeAnalysis.Features (in Microsoft.CodeAnalysis.Features.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class CompletionItemRules

The CompletionItemRules type exposes the following members.

Properties
  NameDescription
Public propertyCommitCharacterRules
Rules that modify the set of characters that can be typed to cause the selected item to be commited.
Public propertyEnterKeyRule
A rule about whether the enter key is passed through to the editor after the selected item has been committed.
Public propertyFilterCharacterRules
Rules that modify the set of characters that can be typed to filter the list of completion items.
Public propertyFormatOnCommit
True if the modified text should be formatted automatically.
Public propertyMatchPriority
True if the related completion item should be initially selected.
Public propertySelectionBehavior
How this item should be selected when the completion list first appears and before the user has typed any characters.
Top
Methods
  NameDescription
Public methodStatic memberCreate(ImmutableArrayCharacterSetModificationRule, ImmutableArrayCharacterSetModificationRule, EnterKeyRule, Boolean, NullableT)
Public methodStatic memberCreate(ImmutableArrayCharacterSetModificationRule, ImmutableArrayCharacterSetModificationRule, EnterKeyRule, Boolean, NullableT, Void)
Public methodWithCommitCharacterRules
Creates a copy of this CompletionItemRules with the CommitCharacterRules property changed.
Public methodWithEnterKeyRule
Creates a copy of this CompletionItemRules with the EnterKeyRule property changed.
Public methodWithFilterCharacterRules
Creates a copy of this CompletionItemRules with the FilterCharacterRules property changed.
Public methodWithFormatOnCommit
Creates a copy of this CompletionItemRules with the FormatOnCommit property changed.
Public methodWithMatchPriority
Creates a copy of this CompletionItemRules with the MatchPriority property changed.
Public methodWithSelectionBehavior
Creates a copy of this CompletionItemRules with the SelectionBehavior property changed.
Top
Fields
  NameDescription
Public fieldStatic memberDefault
The rule used when no rule is specified when constructing a CompletionItem.
Top
See Also