Exemple #1
0
 /// <summary>
 /// returns an XlAxis by Index, not 0 based
 /// </summary>
 /// <param name="i"></param>
 /// <returns></returns>
 public XlAxis this[int index]
 {
     get
     {
         object[] paramArray = new object[1];
         paramArray[0] = index;
         object returnValue = InstanceType.InvokeMember("Item", BindingFlags.InvokeMethod, null, ComReference, paramArray, XlLateBindingApiSettings.XlThreadCulture);
         if (null == returnValue)
         {
             return(null);
         }
         XlAxis newClass = new XlAxis(this, returnValue);
         ListChildReferences.Add(newClass);
         return(newClass);
     }
 }
Exemple #2
0
        /// <summary>
        /// Foreach Enumerator
        /// </summary>
        /// <returns></returns>
        public IEnumerator GetEnumerator()
        {
            int iCount = Count;

            XlAxis[] res_addins = new XlAxis[iCount];

            for (int i = 1; i <= iCount; i++)
            {
                res_addins[i - 1] = this[i];
            }

            for (int i = 0; i < res_addins.Length; i++)
            {
                yield return(res_addins[i]);
            }
        }
        public XlAxis Axes(object type, XlAxisGroup axisGroup)
        {
            object[] paramArray = new object[2];
            paramArray[0] = type;
            paramArray[1] = axisGroup;
            object returnValue = InstanceType.InvokeMember("AreaGroups", BindingFlags.InvokeMethod | BindingFlags.OptionalParamBinding, null, ComReference, paramArray, XlLateBindingApiSettings.XlThreadCulture);

            if (null == returnValue)
            {
                return(null);
            }
            XlAxis newClass = new XlAxis(this, returnValue);

            ListChildReferences.Add(newClass);
            return(newClass);
        }