public override void Visit(ExportLine exportLine) { var pen = FixedDocumentCreator.CreateWpfPen(exportLine); var visual = new DrawingVisual(); using (var dc = visual.RenderOpen()){ dc.DrawLine(pen, new Point(exportLine.Location.X + exportLine.FromPoint.X, exportLine.Location.Y + exportLine.FromPoint.Y), new Point(exportLine.Location.X + exportLine.ToPoint.X, exportLine.Location.Y + exportLine.FromPoint.Y)); } var dragingElement = new DrawingElement(visual); UIElement = dragingElement; }
public override IExportColumn CreateExportColumn() { var ex = new ExportLine(); ex.Location = Location; ex.ForeColor = ForeColor; ex.BackColor = BackColor; ex.Size = Size; ex.DesiredSize = Size; ex.Thickness = Thickness; ex.DashStyle = DashStyle; ex.StartLineCap = StartLineCap; ex.EndLineCap = EndLineCap; ex.FromPoint = FromPoint; ex.ToPoint = ToPoint; return(ex); }
public virtual void Visit(ExportLine exportGraphics) { }
public override void Visit(ExportLine exportGraphics) { // base.Visit(exportGraphics); Console.WriteLine("Line from {0} size {1}", exportGraphics.Location, exportGraphics.Size.Width); }
public override void Visit(ExportLine exportGraphics) { }
public override void Visit(ExportLine exportGraphics) { // base.Visit(exportGraphics); }