public override void Visit(ExportLine exportLine) { var columnLocation = containerLocation; columnLocation.Offset(exportLine.Location); var pen = PdfHelper.PdfPen(exportLine); pen.DashStyle = PdfHelper.DashStyle(exportLine); pen.LineCap = PdfHelper.LineCap(exportLine); gfx.DrawLine(pen,columnLocation.ToXPoints(),new Point(exportLine.Size.Width,columnLocation.Y).ToXPoints()); }
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; return ex; }
public virtual void Visit(ExportLine exportGraphics) { }
public override void Visit(ExportLine exportGraphics) { var pen = FixedDocumentCreator.CreateWpfPen(exportGraphics); var visual = new DrawingVisual(); using (var dc = visual.RenderOpen()){ dc.DrawLine(pen, new Point(exportGraphics.Location.X, exportGraphics.Location.Y), new Point(exportGraphics.Location.X + exportGraphics.Size.Width,exportGraphics.Location.Y)); } var dragingElement = new DrawingElement(visual); UIElement = dragingElement; }
public override void Visit(ExportLine element) { var pen = PdfHelper.CreatePen(element); var fromPoint = PdfHelper.LocationRelToParent(element); var toPoint = new Point(fromPoint.X + element.Size.Width,fromPoint.Y); xGraphics.DrawLine(pen,fromPoint.ToXPoints(),toPoint.ToXPoints()); }
public override void Visit(ExportLine exportGraphics) { // base.Visit(exportGraphics); }
public override void Visit(ExportLine exportGraphics) { }
public override void Visit(ExportLine exportLine) { var columnLocation = containerLocation; columnLocation.Offset(exportLine.Location); var pen = PdfHelper.CreateDashedPen(exportLine); xGraphics.DrawLine(pen,columnLocation.ToXPoints(),new Point(exportLine.Size.Width,columnLocation.Y).ToXPoints()); }
public override void Visit(ExportLine exportGraphics) { // base.Visit(exportGraphics); Console.WriteLine("Line from {0} size {1}",exportGraphics.Location,exportGraphics.Size.Width); }