Version

PreferredWidth Property (TableProperties)

Returns or sets the preferred width of the associated table, 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 'Fixed'.

The value of this property is considered preferred because a consumer may elect to override this value 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