Version

PreferredWidth Property (TableSettings)

Gets/sets the preferred width
Syntax
'Declaration
 
Public Property PreferredWidth As Nullable(Of TableExtent)
public Nullable<TableExtent> PreferredWidth {get; set;}
Remarks

For this property, if the TableExtent.UnitType is 'Percent' it is a % of the overall width of the page.

Note: a type converter is supplied to allow this structure to be specified in xaml. Here are some sample values, in quotes, along with corresponding c# code examples:

  • "none" - new TableExtent(0d, TableExtentUnitType.None)
  • "auto" - new TableExtent(0d, TableExtentUnitType.Auto)
  • "2 auto" - new TableExtent(0d, TableExtentUnitType.Auto)
  • "25.8" - new TableExtent(25.8d, TableExtentUnitType.Twip)
  • "53.8%" - new TableExtent(53.8d, TableExtentUnitType.Percent)

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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