Editar

Partilhar via


WideControl Element

Defines a wide (single value) list format for the view. This view displays a single property value or script value for each object.

Schema

  • Configuration Element
  • ViewDefinitions Element
  • View Element
  • WideControl Element

Syntax

<WideControl>
  <AutoSize/>
  <ColumnNumber>PositiveInteger</ColumnNumber>
  <WideEntries>...</WideEntries>
</WideControl>

Attributes and Elements

The following sections describe the attributes, child elements, and parent element of the WideControl element. You cannot specify the AutoSize and ColumnNumber elements at the same time.

Attributes

None.

Child Elements

Element Description
AutoSize Element for WideControl Optional element.

Specifies whether the column size and the number of columns are adjusted based on the size of the data.
ColumnNumber Element for WideControl Optional element.

Specifies the number of columns displayed in the wide view.
WideEntries Element Required element.

Provides the definitions of the wide view.

Parent Elements

Element Description
View Element Defines a view that is used to display one or more .NET objects.

Remarks

When defining a wide view, you can add the AutoSize element or the ColumnNumber but you cannot add both.

In most cases, only one definition is required for each wide view, but it is possible to have multiple definitions if you want to use the same view to display different .NET objects. In those cases, you can provide a separate definition for each object or set of objects.

For more information about the components of a wide view, see Wide View Components.

Example

The following example shows a WideControl element that is used to display a property of the System.Diagnostics.Process object.

<View>
  <Name>process</Name>
  <ViewSelectedBy>
    <TypeName>System.Diagnostics.Process</TypeName>
  </ViewSelectedBy>
  <WideControl>
    <WideEntries>...</WideEntries>
  </WideControl>
</View>

For a complete example of a wide view, see Wide View (Basic).

See Also

Autosize Element for WideControl

ColumnNumber Element for WideControl

View Element

WideEntries Element

Wide View (Basic)

Creating a Wide View

Writing a PowerShell Formatting File