Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
TextBox.SelectionLength Property
Definition
- Namespace:
- Microsoft.UI.Xaml.Controls
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the number of characters in the current selection in the text box.
public:
property int SelectionLength { int get(); void set(int value); };
int SelectionLength();
void SelectionLength(int value);
public int SelectionLength { get; set; }
var int32 = textBox.selectionLength;
textBox.selectionLength = int32;
Public Property SelectionLength As Integer
<TextBox SelectionLength="int"/>
Property Value
Int32
int
The number of characters in the current selection in the text box, or 0 if there is no selection.
Applies to
Feedback
Was this page helpful?
