Udostępnij za pośrednictwem


Support.SetItemString(Control, Int32, String) Metoda

Definicja

Przestroga

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

ItemString Ustawia właściwość dla elementu ListBoxItem.

public:
 static void SetItemString(System::Windows::Forms::Control ^ Control, int Index, System::String ^ ItemString);
public static void SetItemString (System.Windows.Forms.Control Control, int Index, string ItemString);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static void SetItemString (System.Windows.Forms.Control Control, int Index, string ItemString);
static member SetItemString : System.Windows.Forms.Control * int * string -> unit
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member SetItemString : System.Windows.Forms.Control * int * string -> unit
Public Sub SetItemString (Control As Control, Index As Integer, ItemString As String)

Parametry

Control
Control

Kontrolka ListBoxListBox lub ComboBox .

Index
Int32

ListBoxItemElement Index .

ItemString
String

A String do przypisania do ItemString właściwości.

Atrybuty

Uwagi

Ta funkcja jest używana przez narzędzia uaktualniania do emulacji właściwości Visual Basic 6.0 List . W języku Visual Basic zamiast tego użyj Items właściwości or Items .

Uwaga

Funkcje i obiekty w przestrzeni nazw Microsoft.VisualBasic.Compatibility.VB6 są udostępniane na potrzeby narzędzi służących do uaktualniania programu Visual Basic 6.0 do programu Visual Basic 2008. W większości przypadków te funkcje i obiekty powielają funkcjonalność dostępną w innych przestrzeniach nazw programu .NET Framework. Ich użycie jest konieczne tylko w sytuacji, gdy model kodu programu Visual Basic 6.0 różni się znacząco od wdrożenia programu .NET Framework.

Dotyczy