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.

PropertyName Element for ListItem for ListControl (Format)

 

Specifies the .NET Framework property whose value is displayed in the list.

<PropertyName>.NetTypeProperty</PropertyName>

Attributes and Elements

The following sections describe the attributes, child elements, and the parent element of the PropertyName element.

Attributes

None.

Child Elements

None.

Parent Elements

Element

Description

ListItem Element (Format)

Defines the property or script whose value is displayed in the row of the list view.

Text Value

Specify the name of the property whose value is displayed.

When this element is specified, you cannot specify the ScriptBlock element.

In addition to displaying the property value, you can also specify a label for the value or a format string that can be used to change the display of the value. For more information about specifying data in a list view, see Creating a List View.

Example

The following example shows how to specify the label and property whose value is displayed.

ListItem>
  <Label>NameOfProperty</Label>
  <PropertyName>.NetTypeProperty</PropertyName>
</ListItem>

Show: