IXRTextBox::GetSelectionStart (Compact 2013)

3/28/2014

This method retrieves the starting position of the text selected in this text box.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetSelectionStart(
    int* pSelectionStart
) = 0;

Parameters

  • pSelectionStart
    [out] Pointer to an integer value that indicates the starting position of the current selection.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If there is no selection, this method retrieves the location of the cursor in the text box.

When you call IXRTextBox::SetSelectionStart, it changes the starting position of the text selection and raises a SelectionChanged event. The selection length remains the same.

.NET Framework Equivalent

System.Windows.Controls.TextBox.SelectionStart

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRTextBox
IXRTextBox::SetSelectionStart