次の方法で共有


IXRTextBox::SetSelectionStart (Compact 2013)

3/28/2014

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

See Also

Reference

IXRTextBox
IXRTextBox::GetSelectionStart