Expand Minimize

EntrySelectedBy Element for ListEntry for ListControl (Format)

Defines the .NET Framework types that use this list view definition or the condition that must exist for this definition to be used. In most cases only one definition is needed for a list view. However, you can provide multiple definitions for the list view if you want to use the same list view to display different data for different objects.

<EntrySelectedBy>
  <TypeName>Nameof.NetType</TypeName>
  <SelectionSetName>NameofSelectionSet</SelectionSetName>
  <SelectionCondition>...</SelectionCondition>
</EntrySelectedBy>

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

Attributes

None.

Child Elements

 

Element Description

SelectionCondition Element for EntrySelectedBy for ListControl (Format)

Optional element.

Defines the condition that must exist for this list view definition to be used.

SelectionSetName Element for EntrySelectedBy for ListControl (Format)

Optional element.

Specifies a set of .NET Framework types that use this list view definition.

TypeName Element for EntrySelectedBy for ListControl (Format)

Optional element.

Specifies a .NET Framework type that uses this list view definition.

Parent Elements

 

Element Description

ListEntry Element for ListControl (Format)

Defines how the rows of the list are displayed.

You must specify at least one type, selection set, or selection condition for a list view definition. There is no maximum limit to the number of child elements that you can use.

Selection conditions are used to define a condition that must exist for the definition to be used, such as when an object has a specific property or that a specific property value or script evaluates to true. For more information about selection conditions, see Defining Conditions for Displaying Data.

For more information about the components of a list view, see Creating a List View.

The following example shows how to define the objects for a list view using their .NET Framework type name.

<ListEntry>
  <EntrySelectedBy>
    <TypeName>NameofDotNetType</TypeName>>
  </EntrySelectedBy>
</ListEntry>



Show:
© 2014 Microsoft