Sdílet prostřednictvím


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 objektu 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

Index ListBoxItem.

ItemString
String

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

Atributy

Poznámky

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

Poznámka:

Funkce a objekty v Microsoft.VisualBasic.Compatibility.VB6 oboru názvů jsou poskytovány nástroji pro upgrade z jazyka Visual Basic 6.0 na Visual Basic 2008. Ve většině případů tyto funkce a objekty duplikují funkce, které najdete v jiných oborech názvů v rozhraní .NET Framework. Jsou nezbytné pouze v případě, že se model kódu Jazyka Visual Basic 6.0 výrazně liší od implementace rozhraní .NET Framework.

Platí pro