Beispiel #1
0
		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());
		}
Beispiel #2
0
		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)
 {
 }
Beispiel #4
0
		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;
		}
Beispiel #5
0
 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);
		}
Beispiel #7
0
 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());
		}
Beispiel #9
0
		public override void Visit(ExportLine exportGraphics)
		{
//			base.Visit(exportGraphics);
			Console.WriteLine("Line from {0} size  {1}",exportGraphics.Location,exportGraphics.Size.Width);
		}