共用方式為


Support.GetItemString(Control, Int32) 方法

定義

警告

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

會與StringListBoxComboBox個物品產生關聯。

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

A ListBoxComboBox 控制。

Index
Int32

一個 Integer 代表 的 ListBoxItem指標。

傳回

String 指定的 ListBoxItem相關聯。

屬性

備註

此函式被升級工具用來模擬 Visual Basic 6.0 List 特性。 在 Visual Basic 中,請使用 Items or Items 屬性。

備註

命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 2008 的工具使用。 在大多數情況下,這些函式和物件會重複你在 .NET Framework 其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用。

適用於