//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new table layout manager.</summary> /// <param name="report">Report of this table layout manager</param> public TableLayoutManager(Report report) : base(report) { tableHeight = TableHeight.Static; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -x PenProp pp_Solid = new PenProp(report, 0.5, Color.Black); cellDef.pp_LineV = pp_Solid; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -x columnDef.pp_BorderH = pp_Solid; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -x headerCellDef = new HeaderCellDef(); headerRowDef = new HeaderRowDef(); headerCellDef.rAlignH = RepObj.rAlignLeft; headerCellDef.rAlignV = RepObj.rAlignTop; headerCellDef.rAngle = 0; headerCellDef.textMode = TlmBase.TextMode.MultiLine; headerCellDef.rLineFeed = 72.0 / 6; headerCellDef.rMargin = 0; headerCellDef.rIndentH_MM = 1; headerCellDef.rIndentV_MM = 2; headerCellDef.bp_Back = new BrushProp(report, Color.FromArgb(220, 220, 220)); headerCellDef.pp_Line = pp_Solid; }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new filled rectangle object with a border line.</summary> /// <param name="penProp">Pen properties of the border line</param> /// <param name="brushProp">Brush properties of the rectangle</param> /// <param name="rWidth">Width of the rectangle</param> /// <param name="rHeight">Height of the rectangle</param> public RepRect(PenProp penProp, BrushProp brushProp, Double rWidth, Double rHeight) { this.penProp = penProp.penProp_Registered; this.brushProp = brushProp.brushProp_Registered; this.rWidth = rWidth; this.rHeight = rHeight; }
//----------------------------------------------------------------------------------------------------x /// <summary>Determines whether the specified object is equal to the current object.</summary> /// <param name="o">The object to compare with the current object.</param> /// <returns>true if the specified Object is equal to the current Object; otherwise, false.</returns> public override Boolean Equals(Object o) { if (o == null) { return(false); } PenProp pp = (PenProp)o; return(RT.bEquals(rWidth, pp.rWidth, 0.1) && RT.bEquals(_color, pp._color) && RT.bEquals(rPatternOn, pp.rPatternOn, 0.1) && RT.bEquals(rPatternOff, pp.rPatternOff, 0.1)); }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new line object with millimeter values</summary> /// <param name="penProp">Pen properties of the line</param> /// <param name="rX">X-coordinate of the end of the line, relative to the start point, in millimeter</param> /// <param name="rY">Y-coordinate of the end of the line, relative to the start point, in millimeter</param> public RepLineMM(PenProp penProp, Double rX, Double rY) : base(penProp, RT.rMM(rX), RT.rMM(rY)) { }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new line object.</summary> /// <param name="penProp">Pen properties of the line</param> /// <param name="rX">X-coordinate of the end of the line, relative to the start point</param> /// <param name="rY">Y-coordinate of the end of the line, relative to the start point</param> public RepLine(PenProp penProp, Double rX, Double rY) { this.penProp = penProp.penProp_Registered; this.rWidth = rX; this.rHeight = rY; }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new rectangle object with millimeter values.</summary> /// <param name="penProp">Pen properties of the border line</param> /// <param name="rWidth">Width of the rectangle</param> /// <param name="rHeight">Height of the rectangle</param> public RepRectMM(PenProp penProp, Double rWidth, Double rHeight) : base(penProp, RT.rMM(rWidth), RT.rMM(rHeight)) { }