Dela via


RichEditTextRange.Expand(TextRangeUnit) Method

Definition

Expands a text range to completely contain any partial text units.

public:
 virtual int Expand(TextRangeUnit unit) = Expand;
int Expand(TextRangeUnit const& unit);
public int Expand(TextRangeUnit unit);
function expand(unit)
Public Function Expand (unit As TextRangeUnit) As Integer

Parameters

unit
TextRangeUnit

The text unit to use to expand the range. The default value is Word.

Returns

Int32

int

The number of characters added to the text range, if the range was expanded to include a partially contained unit.

Implements

Applies to