Поделиться через


Support.GetItemString(Control, Int32) Метод

Определение

Внимание

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

Возвращает связанный String с элементом или ComboBox элементомListBox.

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

Параметры

Control
Control

Элемент управления или ComboBox элемент ListBox управления.

Index
Int32

Объект, Integer представляющий индекс ListBoxItemобъекта .

Возвращаемое значение

Связанный String с указанным ListBoxItem.

Атрибуты

Комментарии

Эта функция используется средствами обновления для эмуляции свойства Visual Basic 6.0 List . В Visual Basic используйте Items вместо этого свойство или Items свойство.

Замечание

Функции и объекты в Microsoft.VisualBasic.Compatibility.VB6 пространстве имен предоставляются средствами обновления с Visual Basic 6.0 до Visual Basic 2008. В большинстве случаев эти функции и объекты дублируют функции, которые можно найти в других пространствах имен в .NET Framework. Они необходимы, только если модель кода Visual Basic 6.0 значительно отличается от реализации .NET Framework.

Применяется к