Support.SetItemString(Control, Int32, String) Metoda

Definice

Upozornění

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

ItemString Nastaví vlastnost pro 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

A ListBoxListBox nebo ComboBox ovládací prvek.

Index
Int32

Hodnota Index .ListBoxItem

ItemString
String

A String pro přiřazení vlastnosti ItemString .

Atributy

Poznámky

Tuto funkci používají nástroje pro upgrade k emulaci vlastnosti jazyka Visual Basic 6.0 List . V jazyce Visual Basic použijte Items místo toho vlastnost nebo Items .

Poznámka

Funkce a objekty v oboru názvů Microsoft.VisualBasic.Compatibility.VB6 jsou určené k používání nástroji pro upgrade Visual Basicu 6.0 na Visual Basic 2008. Ve většině případů tyto funkce a objekty duplikují funkce, které můžete najít v jiných oborech názvů v rozhraní .NET Framework. Jsou zapotřebí pouze v případě, že model kódu aplikace Visual Basic 6.0 se zásadně liší od implementace rozhraní .NET Framework.

Platí pro