次の方法で共有


IXRTextBox::SetSelectionStart (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSelectionStart(
    int SelectionStart
) = 0;

Parameters

  • SelectionStart
    [in] An integer value that indicates the starting position of the current selection.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you call this method, 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::GetSelectionStart