public LateBindingApi.Office.Script this[object index] { get { object[] paramArray = new object[1]; paramArray[0] = index; object returnValue = Invoker.MethodReturn(this, "Item", paramArray); if (null == returnValue) { return(null); } LateBindingApi.Office.Script newClass = new LateBindingApi.Office.Script(this, returnValue); return(newClass); } }
public IEnumerator GetEnumerator() { object enumProxy = Invoker.PropertyGet(this, "_NewEnum"); COMObject enumerator = new COMObject(this, enumProxy); Invoker.Method(enumerator, "Reset", null); bool isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null); while (true == isMoveNextTrue) { object itemProxy = Invoker.PropertyGet(enumerator, "Current", null); LateBindingApi.Office.Script returnClass = new LateBindingApi.Office.Script(this, itemProxy); isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null); yield return(returnClass); } }
public LateBindingApi.Office.Script Add(COMObject anchor, LateBindingApi.Office.Enums.MsoScriptLocation location, LateBindingApi.Office.Enums.MsoScriptLanguage language, string id, string extended, string scriptText) { object[] paramArray = new object[6]; paramArray[0] = anchor; paramArray[1] = location; paramArray[2] = language; paramArray[3] = id; paramArray[4] = extended; paramArray[5] = scriptText; object returnValue = Invoker.MethodReturn(this, "Add", paramArray); if (null == returnValue) { return(null); } LateBindingApi.Office.Script newClass = new LateBindingApi.Office.Script(this, returnValue); return(newClass); }