Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TableControl Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a control that displays content in a table format. This class cannot be inherited. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.PSControl
    System.Management.Automation.TableControl

public sealed class TableControl : PSControl

NameDescription
System_CAPS_pubmethodTableControl()

Initializes a new instance of the TableControl class that is empty. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodTableControl(TableControlRow)

Initializes a new instance of the TableControl class that contains a TableControlRow. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodTableControl(TableControlRow, IEnumerable<TableControlColumnHeader>)

Initializes a new instance of the TableControl class that contains a TableControlRow and table control column headers. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyAutoSize

When true, column widths are calculated based on more than the first object.

System_CAPS_pubpropertyGroupBy

Each control can group items and specify a header for the group. You can group by same property value, or result of evaluating a script block. (Inherited from PSControl.)

System_CAPS_pubpropertyHeaders

Gets the column headers for the table. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyHideTableHeaders

When true, table headers are not displayed

System_CAPS_pubpropertyOutOfBand

When the "shape" of formatting has been determined by previous objects, sometimes you want objects of different types to continue using that shape (table, list, or whatever) even if they specify their own views, and sometimes you want your view to take over. When OutOfBand is true, the view will apply regardless of previous objects that may have selected the shape. (Inherited from PSControl.)

System_CAPS_pubpropertyRows

Gets the rows of the table. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreate(Boolean, Boolean, Boolean)

Creates a default TableControl.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

To display content in a list format, see ListControl.

To display content in a wide column format, see WideControl.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: