[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.InsertTableAtSelectionAsync

InsertTableAtSelectionAsync Method

InsertTableAtSelectionAsync(string, int, int, bool, bool, string)

Inserts a table described by the parameters at the current cursor position asynchronously.

Declaration
public Task InsertTableAtSelectionAsync(string className, int cols, int rows, bool header, bool footer, string cssStyleInfo = null)
Parameters
Type Name Description
string className

A css classname to use when constructing the table. If the classname is null, the default table css is used.

int cols

Specifies the number of columns in the table.

int rows

Specifies the number of rows in the table.

bool header

A bool specifying if the table should contain a header.

bool footer

A bool specifying if the table should contain a footer.

string cssStyleInfo

Specifies a css style definition for the table. If null, then the classname css style is used. If both classname and cssTyleInfo are specified, the css class is defined.

Returns
Type Description
Task