共用方式為


IWizCombo.InsertItem 方法

在精靈下拉式方塊中的指定位置插入指定項目。

命名空間:  Microsoft.VisualStudio.VsWizard
組件:  Microsoft.VisualStudio.VsWizard (在 Microsoft.VisualStudio.VsWizard.dll 中)

語法

'宣告
Sub InsertItem ( _
    bstrItem As String, _
    nIndex As Integer _
)
void InsertItem(
    string bstrItem,
    int nIndex
)
void InsertItem(
    [InAttribute] String^ bstrItem, 
    [InAttribute] int nIndex
)
abstract InsertItem : 
        bstrItem:string * 
        nIndex:int -> unit
function InsertItem(
    bstrItem : String, 
    nIndex : int
)

參數

  • bstrItem
    類型:String

    必要項。 識別項目的字串。

  • nIndex
    類型:Int32

    必要項。 要插入之項目之以零起始的索引。

.NET Framework 安全性

請參閱

參考

IWizCombo 介面

Microsoft.VisualStudio.VsWizard 命名空間