TRVTableItemInfo.BestWidth

<< Click to display table of contents >>

TRVTableItemInfo.BestWidth

Preferred width for the table.

property BestWidth: TRVHTMLLength;

This is a preferred width for the table, measured either in Units of the linked TRVStyle component or in percent.

The table can be wider than this value if it is required to display its content without overlapping.

If BestWidth is undefined (=0), TRichView tries to calculate the table width basing on its cells. In this version TRichView can do it only if all columns have widths defined in TRVStyleUnits (have at least one cell with BestWidth defined in TRVStyleUnits, and do not have cells with BestWidth defined in percents). Otherwise BestWidth=0 works like BestWidth=-100 (100%).

This property corresponds to HTML <table width> attribute.

See also undo of assignments to table properties.

Default value:

0

See also:

Table Resizing;

Undo of assignments to table properties.

See also properties of table cell:

BestWidth;

BestHeight.