예제 #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);
		}