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


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

Определение

Внимание

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

ItemString Задает свойство для 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)

Параметры

Control
Control

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

Index
Int32

Index ListBoxItem.

ItemString
String

A String , назначаемое свойству ItemString .

Атрибуты

Комментарии

Эта функция используется средствами обновления для эмуляции свойства 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.

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