Help Center

CTextRange2.InsertTablemethod

Inserts a table in a range.

Windowsmethoddocumented

Syntax

FUNCTION InsertTable (BYVAL cCol AS LONG, BYVAL cRow AS LONG, BYVAL AutoFit AS LONG) AS HRESULT

Parameters

NameDescription
cColThe number of columns in the table.
cRowThe number of rows in the table.
AutoFitSpecifies 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