Share via


TableControl Class

Definition

Defines a table control.

public ref class TableControl sealed : System::Management::Automation::PSControl
public sealed class TableControl : System.Management.Automation.PSControl
type TableControl = class
    inherit PSControl
Public NotInheritable Class TableControl
Inherits PSControl
Inheritance
TableControl

Constructors

TableControl()

Public default constructor for TableControl

TableControl(TableControlRow, IEnumerable<TableControlColumnHeader>)

Public constructor for TableControl that takes both 'tableControlRows' and 'tableControlColumnHeaders'.

TableControl(TableControlRow)

Public constructor for TableControl that only takes 'tableControlRows'.

Properties

AutoSize

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

GroupBy

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)
Headers

Collection of column header definitions for this table control

HideTableHeaders

When true, table headers are not displayed

OutOfBand

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)
Rows

Collection of row definitions for this table control

Methods

Create(Boolean, Boolean, Boolean)

Create a default TableControl

Applies to