This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ListItem Methods
The methods of the ListItem class are listed below. For a complete list of ListItem class members, see the ListItem Members topic.
Public:
Clone |
[To be supplied.] |
EnsureVisible |
Ensure that the item is visible, scrolling the view as necessary. |
Equals |
equals returns whether or not two ListItems are equal |
GetBounds |
Returns a specific portion of the ListItem's bounding rectangle. The rectangle returned is empty if the ListItem has not been added to a ListView control. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetSubItem |
Returns a specific sub item for this ListItem |
GetSubItemBackColor |
Gets the specified subitem's background color. If a SubItem has not been defined for this index, the color information will be obtained correctly (though text will not be displayed in this color until an associated subitem text string has been defined). |
GetSubItemCount |
Returns the number of subitems in this LIstItem |
GetSubItemFont |
Gets the specified subitem's font. If a SubItem has not been defined for this index, the font information will be obtained correctly (though text will not be displayed in this font until an associated subitem text string has been defined). |
GetSubItemForeColor |
Gets the specified subitem's foreground color. If a SubItem has not been defined for this index, the color information will be obtained correctly (though text will not be displayed in this color until an associated subitem text string has been defined). |
GetType (inherited from Object) |
Gets the Type of the Object. |
Remove |
[To be supplied.] |
Save |
Saves this ListItem object to the given data stream. |
SetSubItem |
Sets s SubItem text string to theis ListItem at the given Index. If Index >= SubItemCount, then the SubItem array is grown to match the Index. Anything in between the old array bounds and the new is declared as null. |
SetSubItemBackColor |
Sets the specified subitem's background color. Even if a SubItem has not been defined for this index, the color information will be stored correctly (though text will not be displayed in this color until an associated subitem text string has been defined). |
SetSubItemFont |
Sets the specified subitem's background color. Even if a SubItem has not been defined for this index, the font information will be stored correctly (though text will not be displayed in this font until an associated subitem text string has been defined). |
SetSubItemForeColor |
Sets the specified subitem's foreground color. Even if a SubItem has not been defined for this index, the color information will be stored correctly (though text will not be displayed in this color until an associated subitem text string has been defined). |
ShouldPersistSubItems |
[To be supplied.] |
ShouldPersistText |
[To be supplied.] |
ToString |
[To be supplied.] |
Protected:
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
ListItem Class | System.WinForms Namespace