rvico TRichView Reference | Item Types | Table | Cell

TRVTableCellData.BestWidth

Top  Previous  Next

Preferred width for the cell

property BestWidth: TRVHTMLLength;

This is a preferred width for cell, in pixels or percent of table width.

Corresponds to <td width> in HTML.

Direct assignment to this property cannot be undone/redone by user, use table.SetCellBestWidth.

The cell can be wider than this value, if it's required to display its contents without overlapping. Cell always has enough width for displaying the widest its item + CellHPadding*2 + paragraph indents (FirstIndent, LeftIndent, RightIndent) (if rvtoIgnoreContentWidth is not included in table.Options).

The cell can be narrower than specified in this property, if the table is not wide enough.

Default value:

0

See also properties:

BestHeight.

See also properties of table:

BestWidth;
Options (rvtoIgnoreContentWidth option).

See also:

Table Resizing.


RichView © Sergey Tkachenko