Exemple #1
0
        /// <summary>
        /// Symmetrize the shapes.
        /// </summary>
        /// <param name="selectedShapes"></param>
        /// <param name="msoFlipCmd"></param>
        /// <param name="adjustPosition"></param>
        private static void Symmetrize(PowerPoint.ShapeRange selectedShapes, MsoFlipCmd msoFlipCmd, Action <PPShape, PPShape> adjustPosition)
        {
            try
            {
                for (int i = 1; i <= selectedShapes.Count; i++)
                {
                    PPShape originalShape = new PPShape(selectedShapes[i]);
                    PPShape newShape      = originalShape.Duplicate();

                    newShape.Flip(msoFlipCmd);
                    newShape.Select(MsoTriState.msoFalse);
                    adjustPosition.Invoke(originalShape, newShape);
                }
            }
            catch (Exception e)
            {
                Logger.LogException(e, "Symmetrize");
            }
        }
        /// <summary>
        /// Symmetrize the shapes.
        /// </summary>
        /// <param name="selectedShapes"></param>
        /// <param name="msoFlipCmd"></param>
        /// <param name="adjustPosition"></param>
        private static void Symmetrize(PowerPoint.ShapeRange selectedShapes, MsoFlipCmd msoFlipCmd, Action<PPShape, PPShape> adjustPosition)
        {
            try
            {
                for (int i = 1; i <= selectedShapes.Count; i++)
                {
                    var originalShape = new PPShape(selectedShapes[i]);
                    var newShape = originalShape.Duplicate();

                    newShape.Flip(msoFlipCmd);
                    newShape.Select(MsoTriState.msoFalse);
                    adjustPosition.Invoke(originalShape, newShape);
                }
            }
            catch (Exception e)
            {
                Logger.LogException(e, "Symmetrize");
            }
        }
Exemple #3
0
 /// <summary>
 /// Flip the specified shape around its horizontal or vertical axis.
 /// </summary>
 /// <param name="msoFlipCmd"></param>
 public void Flip(MsoFlipCmd msoFlipCmd)
 {
     _shape.Flip(msoFlipCmd);
 }
Exemple #4
0
 public void Flip(MsoFlipCmd FlipCmd)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 public void Flip(MsoFlipCmd flipCmd)
 {
     object[] paramArray = new object[1];
     paramArray[0] = flipCmd;
     InstanceType.InvokeMember("Flip", BindingFlags.InvokeMethod, null, ComReference, paramArray, XlLateBindingApiSettings.XlThreadCulture);
 }
Exemple #6
0
 public void Flip(MsoFlipCmd FlipCmd)
 {
     throw new NotImplementedException();
 }
 /// <summary>绕指定形状的水平或垂直对称轴翻转该形状。
 /// </summary>
 /// <param name="FlipCmd">指定形状是水平翻转还是垂直翻转。</param>
 public void Flip(MsoFlipCmd FlipCmd)
 {
     _objaParameters = new object[1] { FlipCmd };
     _objShapeRange.GetType().InvokeMember("Flip", BindingFlags.InvokeMethod, null, _objShapeRange, _objaParameters);
 }
 /// <summary>绕指定形状的水平或垂直对称轴翻转该形状。
 /// </summary>
 /// <param name="FlipCmd">指定形状是水平翻转还是垂直翻转。</param>
 public void Flip(MsoFlipCmd FlipCmd)
 {
     _objShape.GetType().InvokeMember("Flip", BindingFlags.InvokeMethod, null, _objShape, new object[1] { FlipCmd });
 }
 /// <summary>
 /// Flip the specified shape around its horizontal or vertical axis.
 /// </summary>
 /// <param name="msoFlipCmd"></param>
 public void Flip(MsoFlipCmd msoFlipCmd)
 {
     _shape.Flip(msoFlipCmd);
 }