Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Retrieves a new text range for the active story of the document.
Syntax
HRESULT Range2(
[in] long cpActive,
[in] long cpAnchor,
[out, retval] ITextRange2 **ppRange
);
Parameters
[in] cpActive
Type: long
The active end of the new text range. The default value is 0; that is, the beginning of the story.
[in] cpAnchor
Type: long
The anchor end of the new text range. The default value is 0.
[out, retval] ppRange
Type: ITextRange2**
The new text range.
Return value
Type: HRESULT
If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] |
| Minimum supported server | Windows Server 2012 [desktop apps only] |
| Target Platform | Windows |
| Header | tom.h |
| DLL | Msftedit.dll |