rvico TRichView Reference | Item Types | Table

TRVTableItemInfo.CreateEx

Top  Previous  Next

Creates a new TRVTableItemInfo object having nRows rows and nCols columns.

constructor CreateEx(nRows, nCols: Integer; AMainRVData: TCustomRVData);

Parameters:

nRows – count of rows.

nCols – count of columns.

RVDataRVData property of TRichView or TRichViewEdit, where you wish to insert this table.

If nRows=0, then nCols is ignored, and 0x0 table is created. A number of columns is stored only if table.RowCount>0.

Example

var table:TRVTableItemInfo;

...

table := TRVTableItemInfo.CreateEx(55, MyRichViewEdit.RVData);

table.Color := clYellow;

table.Cells[0,0].AddNL('Hello',0,0);

MyRichViewEdit.InsertItem('5x5 table', table);

 

See also methods:

Create.

See also methods of TCustomRichView:

AddItem.

See also methods of TCustomRichViewEdit:

InsertItem.


TRichView © trichview.com