Version

PreferredWidth Property (TableCellProperties)

Returns or sets the preferred width of the associated table cell, expressed as an explicit linear quantity.
Syntax
'Declaration
 
Public Property PreferredWidth As Nullable(Of Single)
public Nullable<float> PreferredWidth {get; set;}
Remarks

This property is only applicable when the Layout property is set to 'Auto'.

The PreferredWidth property provides a way to explicitly define the width of the associated table cell. The value is considered preferred because the actual width may be different based on the current table layout algorithm.

The unit of measurement used to express the property value is defined by the Unit property of the associated WordDocumentWriter.

The PreferredWidth property and the PreferredWidthAsPercentage properties are mutually exclusive, and the PreferredWidth property takes precedence, so in the case where both properties are explicitly set, the PreferredWidthAsPercentage property is not applicable.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also