IXpsOMDashCollection::InsertAt 方法 (xpsobjectmodel.h)
在集合中指定的位置插入 XPS_DASH 結構。
語法
HRESULT InsertAt(
[in] UINT32 index,
[in] const XPS_DASH *dash
);
參數
[in] index
集合中以零起始的索引,其中要插入 虛線 所參考的結構。
[in] dash
要插入索引所指定位置之XPS_DASH結構的指標。
傳回值
如果方法成功,則會傳回S_OK;否則,它會傳回 HRESULT 錯誤碼。
備註
在索引所指定的位置,這個方法會插入以虛線傳遞的XPS_DASH結構。 在插入之前,這個 結構和所有後續位置都會由一個索引向上移動。
下圖說明 InsertAt 方法如何變更集合。
![顯示 InsertAt 如何將專案新增至虛線集合的圖表](images/dashcollection_insertat.png)
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | 適用於 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式] |
最低支援的伺服器 | Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式] |
目標平台 | Windows |
標頭 | xpsobjectmodel.h |