共用方式為


SyncList<TListType>.InsertItem 方法

這個應用程式開發介面支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

將項目插入至清單中指定的索引處。

命名空間:  Microsoft.Reporting.WinForms
組件:  Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)

語法

'宣告
Protected Overrides Sub InsertItem ( _
    index As Integer, _
    item As TListType _
)
protected override void InsertItem(
    int index,
    TListType item
)
protected:
virtual void InsertItem(
    int index, 
    TListType item
) override
abstract InsertItem : 
        index:int * 
        item:'TListType -> unit 
override InsertItem : 
        index:int * 
        item:'TListType -> unit 
protected override function InsertItem(
    index : int, 
    item : TListType
)

參數

  • index
    類型:Int32
    應在 item 插入以零為起始的索引。
  • item
    類型:TListType
    要插入的物件。

請參閱

參考

SyncList<TListType> 類別

Microsoft.Reporting.WinForms 命名空間