This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ListItem Members
Public:
Constructor
Properties
BackColor |
The font that this item will be displayed in. If its value is null, it will be displayed using the global font for the ListView control that hosts it. |
Bounds |
Returns the ListItem's bounding rectangle, including subitems. The bounding rectangle is empty if the ListItem has not been added to a ListView control. |
Checked |
[To be supplied.] |
Extension |
Retrieves a filename extension to save this object's persistance data with. |
Focused |
Returns the focus state of the ListItem. |
ForeColor |
The font that this item will be displayed in. If its value is null, it will be displayed using the global font for the ListView control that hosts it. |
ImageIndex |
Returns the ListItem's currently set image index |
Index |
Returns ListItem's current index in the listview, or-1 if it has not been added to a ListView control. |
ItemFont |
The font that this item will be displayed in. If its value is null, it will be displayed using the global font for the ListView control that hosts it. |
ListView |
Returns the ListView control that holds this ListItem. May be null if no control has been assigned yet. |
RowItems |
Treats the ListItem as a row of strings, and returns an array of those strings |
Selected |
[To be supplied.] |
StateImageIndex |
[To be supplied.] |
SubItems |
[To be supplied.] |
Text |
Text associated with this ListItem |
UseItemStyleForSubItems |
Whether or not the font and coloring for the ListItem will be used for all of its subitems. If true, the ListItem style will be used when drawing the subitems. If false, the ListItem and its subitems will be drawn in their own individual styles if any have been set. |
Methods
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:
Methods
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