Dela via


RichEditTextRange.StartOf(TextRangeUnit, Boolean) Method

Definition

Moves or extends the text range to the start of the nearest specified text unit. The text range is moved or extended backward in the document.

public:
 virtual int StartOf(TextRangeUnit unit, bool extend) = StartOf;
int StartOf(TextRangeUnit const& unit, bool const& extend);
public int StartOf(TextRangeUnit unit, bool extend);
function startOf(unit, extend)
Public Function StartOf (unit As TextRangeUnit, extend As Boolean) As Integer

Parameters

unit
TextRangeUnit

The unit by which to move the start position of the text range. The default value is Word.

extend
Boolean

bool

true to extend the text range by moving just the start position of the range to the start of the specified unit. false to move both ends of the text range to the start of the specified unit. The default is false.

Returns

Int32

int

Implements

M:Windows.UI.Text.ITextRange.StartOf(Windows.UI.Text.TextRangeUnit,System.Boolean) M:Windows.UI.Text.ITextRange.StartOf(Windows.UI.Text.TextRangeUnit,bool)

Applies to