Пример #1
0
 public void ScaleWidth(Double factor, LateBindingApi.Office.Enums.MsoTriState relativeToOriginalSize)
 {
     object[] paramArray = new object[2];
     paramArray[0] = factor;
     paramArray[1] = relativeToOriginalSize;
     Invoker.Method(this, "ScaleWidth", paramArray);
 }
Пример #2
0
 public void Align(LateBindingApi.Office.Enums.MsoAlignCmd alignCmd, LateBindingApi.Office.Enums.MsoTriState relativeTo)
 {
     object[] paramArray = new object[2];
     paramArray[0] = alignCmd;
     paramArray[1] = relativeTo;
     Invoker.Method(this, "Align", paramArray);
 }
Пример #3
0
 public void Distribute(LateBindingApi.Office.Enums.MsoDistributeCmd distributeCmd, LateBindingApi.Office.Enums.MsoTriState relativeTo)
 {
     object[] paramArray = new object[2];
     paramArray[0] = distributeCmd;
     paramArray[1] = relativeTo;
     Invoker.Method(this, "Distribute", paramArray);
 }
Пример #4
0
 public void ScaleHeight(Double factor, LateBindingApi.Office.Enums.MsoTriState relativeToOriginalSize, LateBindingApi.Office.Enums.MsoScaleFrom fScale)
 {
     object[] paramArray = new object[3];
     paramArray[0] = factor;
     paramArray[1] = relativeToOriginalSize;
     paramArray[2] = fScale;
     Invoker.Method(this, "ScaleHeight", paramArray);
 }
Пример #5
0
		public LateBindingApi.Office.TextRange2 InsertSymbol(string fontName, Int32 charNumber, LateBindingApi.Office.Enums.MsoTriState unicode)
		{
			object[] paramArray = new object[3];
			paramArray[0] = fontName;
			paramArray[1] = charNumber;
			paramArray[2] = unicode;
			object returnValue = Invoker.MethodReturn(this, "InsertSymbol", paramArray);
			if(null == returnValue)
				return null;
			LateBindingApi.Office.TextRange2 newClass = new LateBindingApi.Office.TextRange2(this, returnValue);
			return newClass;
		}
Пример #6
0
		public LateBindingApi.Office.TextRange2 Find(string findWhat, Int32 after, LateBindingApi.Office.Enums.MsoTriState matchCase, LateBindingApi.Office.Enums.MsoTriState wholeWords)
		{
			object[] paramArray = new object[4];
			paramArray[0] = findWhat;
			paramArray[1] = after;
			paramArray[2] = matchCase;
			paramArray[3] = wholeWords;
			object returnValue = Invoker.MethodReturn(this, "Find", paramArray);
			if(null == returnValue)
				return null;
			LateBindingApi.Office.TextRange2 newClass = new LateBindingApi.Office.TextRange2(this, returnValue);
			return newClass;
		}
Пример #7
0
        public LateBindingApi.Office.Shape AddPicture(string fileName, LateBindingApi.Office.Enums.MsoTriState linkToFile, LateBindingApi.Office.Enums.MsoTriState saveWithDocument, Double left, Double top, Double width, Double height)
        {
            object[] paramArray = new object[7];
            paramArray[0] = fileName;
            paramArray[1] = linkToFile;
            paramArray[2] = saveWithDocument;
            paramArray[3] = left;
            paramArray[4] = top;
            paramArray[5] = width;
            paramArray[6] = height;
            object returnValue = Invoker.MethodReturn(this, "AddPicture", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Office.Shape newClass = new LateBindingApi.Office.Shape(this, returnValue);
            return(newClass);
        }
Пример #8
0
        public LateBindingApi.Office.Shape AddTextEffect(LateBindingApi.Office.Enums.MsoPresetTextEffect presetTextEffect, string text, string fontName, Double fontSize, LateBindingApi.Office.Enums.MsoTriState fontBold, LateBindingApi.Office.Enums.MsoTriState fontItalic, Double left, Double top)
        {
            object[] paramArray = new object[8];
            paramArray[0] = presetTextEffect;
            paramArray[1] = text;
            paramArray[2] = fontName;
            paramArray[3] = fontSize;
            paramArray[4] = fontBold;
            paramArray[5] = fontItalic;
            paramArray[6] = left;
            paramArray[7] = top;
            object returnValue = Invoker.MethodReturn(this, "AddTextEffect", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Office.Shape newClass = new LateBindingApi.Office.Shape(this, returnValue);
            return(newClass);
        }