| ControlExtensionsAutoSizeTableColumns Method |
This method is used to auto-size the columns in a table
Namespace: SandcastleBuilder.WPFAssembly: SandcastleBuilder.WPF (in SandcastleBuilder.WPF.dll) Version: 2014.11.22.0
Syntax public static void AutoSizeTableColumns(
this Table table
)
<ExtensionAttribute>
Public Shared Sub AutoSizeTableColumns (
table As Table
)
public:
[ExtensionAttribute]
static void AutoSizeTableColumns(
Table^ table
)
[<ExtensionAttribute>]
static member AutoSizeTableColumns :
table : Table -> unit
Parameters
- table
- Type: System.Windows.DocumentsTable
The table in which to auto-size the columns
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Table. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks This is a very simple, brute force method of sizing the columns based purely on the
length of the text in each cell. It's far from perfect but does a decent job in most cases.
See Also