====== Add ======
Method of [[:scripting:api:list-pane:start|IListPane]]
===== Description =====
Add new line to the list
===== Parameters =====
* [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bSelected**
* [[scripting:api:data-type:long|long]] **nImage**
* [[scripting:api:data-type:SAFEARRAY(VARIANT)|SAFEARRAY(VARIANT)]] **Items**
==== Return Value ====
* [[:scripting:api:list-item:start|IListItem]] **ppItem**
===== Syntax =====
==== JavaScript ====
var ppItem = ListPane.Add(bSelected, nImage, Items);
==== Visual Basic Script ====
ppItem = ListPane.Add bSelected, nImage, Items
==== C++ ====
CComPtr pItem;
HRESULT hr = ListPane.Add(bSelected, nImage, Items, &pItem);
===== See Also =====
[[:scripting:api:list-pane:start|IListPane]]
~~NOTOC~~