CompletionItem

Method of IScriptApplication

CompletionItem object constructor

  • BSTR strText
  • VARIANT Style (optional)
  • long nImage = -1 (optional)
  • long nSubImage = -1 (optional)
  • BSTR strDescription = "" (optional)
  • VARIANT onExpand (optional)

Return Value

JavaScript

var ppCompletionItem = ScriptApplication.CompletionItem(strText, Style, nImage, nSubImage, strDescription, onExpand);

Visual Basic Script

ppCompletionItem = ScriptApplication.CompletionItem strText, Style, nImage, nSubImage, strDescription, onExpand

C++

CComPtr<IScriptCompletionItem> pCompletionItem;
HRESULT hr = ScriptApplication.CompletionItem(strText, Style, nImage, nSubImage, strDescription, onExpand, &pCompletionItem);