CTextRange2.InsertTablemethod
Inserts a table in a range.
Syntax
FUNCTION InsertTable (BYVAL cCol AS LONG, BYVAL cRow AS LONG, BYVAL AutoFit AS LONG) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
cCol | The number of columns in the table. | |
cRow | The number of rows in the table. | |
AutoFit | Specifies how the cells fit the target space. |
Return value
If the method succeeds, it returns S_OK. If the method fails, it returns an HRESULT error code.
Description
Inserts a table in a range.
Reference
- Defined in AfxNova/CTextRange2.inc:1046
- Documented in Windows/WIndows Controls/RichEdit/CTextRange2 Class.md
- Topic: CTextRange2 Class