Udostępnij za pośrednictwem


Support.GetItemString(Control, Int32) Metoda

Definicja

Przestroga

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

String Pobiera element skojarzony z elementem ListBox lub ComboBox .

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

Parametry

Control
Control

Kontrolka ListBox lub ComboBox .

Index
Int32

Element Integer reprezentujący indeks obiektu ListBoxItem.

Zwraca

Element String skojarzony z określonym ListBoxItemelementem .

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