IXRTextBox::SetSelectionLength (Windows Embedded CE 6.0)
1/6/2010
This method sets the number of characters in the current selection in this text box.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetSelectionLength(
int SelectionLength
) = 0;
Parameters
- SelectionLength
[in] An integer value that indicates the new number of characters in the current selection in this text box, or 0 if there is no selection.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
When you call this method, it adjusts the length of the current selection to the specified value, keeping the beginning of the selection fixed.
If the specified selection length is longer than the amount of text, the selection length automatically adjusts so that the resulting selection is never more than the amount of text.
When you call SetSelectionLength and pass in a valid value, the SelectionChanged event is raised.
.NET Framework Equivalent
System.Windows.Controls.TextBox.SelectionLength
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |