次の方法で共有


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

ListBoxItemItemString プロパティを設定します。

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

ListBox ListBoxコントロールまたはComboBox コントロール。

Index
Int32

IndexListBoxItem

ItemString
String

ItemString プロパティに割り当てるString

属性

注釈

この関数は、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 の実装と大きく異なる場合にのみ必要です。

適用対象