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.

ListControl Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a control that displays content in a list 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.ListControl

public sealed class ListControl : PSControl

NameDescription
System_CAPS_pubmethodListControl()

Initializes a new instance of the ListControl class with the default options. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodListControl(IEnumerable<ListControlEntry>)

Initializes a new instance of the ListControl class with the entries of a list control. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyEntries

Gets the entries that are displayed as a list. This property is introduced in Windows PowerShell 2.0.

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_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.)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreate(Boolean)

Creates a new list control.

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 table format, see TableControl.

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: