RichEditTextRange.Expand(TextRangeUnit) 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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for