예제 #1
0
        private static void DrawShapeOnCanvas(this LineCanvasShape lcs, MWord.CanvasShapes canvasItems)
        {
            var line = canvasItems.AddLine((float)lcs.Start.x, (float)lcs.Start.y, (float)lcs.End.x, (float)lcs.End.y);

            line.Line.Weight = (float)lcs.Thickness;
        }
예제 #2
0
 private static void DrawShapeOnCanvas(this CurveCanvasShape ccs, MWord.CanvasShapes canvasItems)
 {
     canvasItems.AddCurve(ccs.ConvertTuplePointsToSafePoints()).Line.Weight = (float)ccs.Thickness;
 }
예제 #3
0
        private static void DrawShapeOnCanvas(this TriangleCanvasShape tcs, MWord.CanvasShapes canvasItems)
        {
            var shp = canvasItems.AddPolyline(tcs.CreatePolyLine());

            shp.Fill.BackColor.SchemeColor = 2;
        }