ITextRange::Collapse method (tom.h)
Collapses the specified text range into a degenerate point at either the beginning or end of the range.
Syntax
HRESULT Collapse(
[in] long bStart
);
Parameters
[in] bStart
Type: long
Flag specifying the end to collapse at. It can be one of the following.
Value | Meaning |
---|---|
|
Range is collapsed to the start of the range. This is the default. |
|
Range is collapsed to the end of the range. |
Return value
Type: HRESULT
This method returns an HRESULT value. If successful, it returns S_OK. Otherwise, it returns S_FALSE.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | tom.h |
DLL | Msftedit.dll |
See also
Conceptual
Reference