Set the Selection property of CompletionSession.

SyntaxEditor for WPF Forum

The latest build of this product (v21.1.1) was released 1 month ago, which was before this thread was created.
Posted 6 days ago by Sunshine - Appeon
Version: 21.1.1
Avatar

I want to set the current selection of auto-complete in this way.

Even if the value of CompletionSelectionState is set to Full, the selection will only scroll to the target position. And did not choose it.

The effect I want is after setting the Selection property. Ability to trigger commit directly through the commit character.Instead of pressing the arrow keys to commit.

Is this because of what attributes I set that causes it not to be selected automatically?

this.Selection = new CompletionSelection(selectItem, CompletionSelectionState.Full);

Comments (1)

Posted 5 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Can you put together a new simple sample project showing the issue you're having so that we can make sure we are seeing the same thing and can answer your question properly?  Please send the sample to our support address, mention this thread in your e-mail, and provide some more detail about the scenario so that we can understand why you are invoking this code.  Be sure to remove the bin/obj folders from the .zip you send so it doesn't get spam blocked.  Thanks!


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.