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.
[Visual Basic] Overridable Public Sub SetSubItem( _ ByVal index As Integer, _ ByVal text As String _ ) [C#] public virtual void SetSubItem( int index, string text ); [C++] public: virtual void SetSubItem( int index, String* text ); [JScript] public function SetSubItem( index : int, text : String );
Exception Type | Condition |
---|---|
ArgumentException | Thrown if Index < 0 or if Index > # of Current COlumns in the ListView |
ListItem Class | ListItem Members | System.WinForms Namespace