Version

SelectedDataItems Property

Gets or sets an array of data items associated with the diagram items in the SelectedItems collection.
Syntax
'Declaration
 
Public Property SelectedDataItems As Object()
public object[] SelectedDataItems {get; set;}

Property Value

An array containing the data items of the selected diagram items or null.
Remarks

This property is exposed as an object array (instead of IEnumerable or IList) so that there should be no confusion about its behavior. When the selection changes a new object array is created (as an atomic operation) from the SelectedItems collection. The DiagramItem.Content of each DiagramItem in that collection is used to popluate the new array. To change the diagram items selection an application can set this property (either explicitly or through a binding) to a new array of its data items.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also