Share via


IXRTextBox::GetSelectionStart (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRTextBox
IXRTextBox::SetSelectionStart