Udostępnij za pośrednictwem


Support.GetItemString(Control, Int32) Metoda

Definicja

Uwaga

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 lubComboBox.

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 or Items .

Uwaga / Notatka

Funkcje i obiekty w Microsoft.VisualBasic.Compatibility.VB6 przestrzeni nazw są używane przez narzędzia do uaktualniania z programu Visual Basic 6.0 do Visual Basic 2008. W większości przypadków te funkcje i obiekty zduplikowane funkcje, które można znaleźć w innych przestrzeniach nazw w programie .NET Framework. Są one niezbędne tylko wtedy, gdy model kodu języka Visual Basic 6.0 różni się znacząco od implementacji programu .NET Framework.

Dotyczy