RichEditTextRange.StartOf(TextRangeUnit, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
int