Пример #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());
		}
Пример #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;
		}
Пример #3
0
 public virtual void Visit(ExportLine exportGraphics)
 {
 }
Пример #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;
		}
Пример #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());
 }
Пример #6
0
		public override void Visit(ExportLine exportGraphics)
		{
//			base.Visit(exportGraphics);
		}
Пример #7
0
 public override void Visit(ExportLine exportGraphics)
 {
 }
Пример #8
0
		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());
		}
Пример #9
0
		public override void Visit(ExportLine exportGraphics)
		{
//			base.Visit(exportGraphics);
			Console.WriteLine("Line from {0} size  {1}",exportGraphics.Location,exportGraphics.Size.Width);
		}