Expand Minimize

PropertyName Element for ListItem for ListControl (Format)

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

<PropertyName>.NetTypeProperty</PropertyName>

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 for ListItems for ListControl (Format)

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

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.

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

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



Show:
© 2015 Microsoft