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; }
private static void DrawShapeOnCanvas(this CurveCanvasShape ccs, MWord.CanvasShapes canvasItems) { canvasItems.AddCurve(ccs.ConvertTuplePointsToSafePoints()).Line.Weight = (float)ccs.Thickness; }
private static void DrawShapeOnCanvas(this TriangleCanvasShape tcs, MWord.CanvasShapes canvasItems) { var shp = canvasItems.AddPolyline(tcs.CreatePolyLine()); shp.Fill.BackColor.SchemeColor = 2; }