GrapeCity MultiRow Windows Forms Documentation
Items Property (ListLabelCell)


Gets the objects that represent the selection displayed in the list.
Syntax
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.ListCellStringCollectionEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
<MergablePropertyAttribute(False)>
<SRCategoryAttribute("Data")>
<SRDescriptionAttribute("Indicates the items in the Cell.")>
<LocalizableAttribute(True)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>
Public ReadOnly Property Items As ListLabelCell.ObjectCollection
Dim instance As ListLabelCell
Dim value As ListLabelCell.ObjectCollection
 
value = instance.Items
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="GrapeCity.Win.MultiRow.Design.ListCellStringCollectionEditor, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
[MergableProperty(false)]
[SRCategory("Data")]
[SRDescription("Indicates the items in the Cell.")]
[Localizable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public ListLabelCell.ObjectCollection Items {get;}

Property Value

An ListLabelCell.ObjectCollection that contains the candidate items.
Remarks

This property enables you to obtain a reference to the list of items that are currently stored in the ListLabelCell. With this reference, you can add items, remove items, and obtain a count of the items in the collection. For more information on the tasks that can be performed with the Items collection, see ListLabelCell.ObjectCollection.

If strings are added to Items, then ValueMember and DisplayMember do not need to be set because each string added will be used for both value and display.

If the ListCell.DataSource property is set, then the Items property cannot be used.

Requirements

Target Platforms: Windows 7, 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

Reference

ListLabelCell Class
ListLabelCell Members
ValueMember Property
DisplayMember Property

 

 


Copyright © GrapeCity, inc. All rights reserved.