//----------------------------------------------------------------------------------------------------x /// <summary>Creates a page for the report</summary> /// <param name="report">Report to which this page will be add</param> public Page(Report report) : base(RT.rPointFromMM(210.224), RT.rPointFromMM(297.302)) { this.report = report; report.RegisterPage(this); oRepObjX = report.formatter.oCreate_PageX(this); iPageNo = report.iPageCount; }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new rectangle object with millimeter values.</summary> /// <param name="penProp">Pen properties of the border line</param> /// <param name="rXPoints">X-coodinate of points, relative to the start point, in millimeters.</param> /// <param name="rYPoints">Y-coodinate of points, relative to the start point, in millimeters.</param> public RepPolyMM(PenProp penProp, Double[] rXPoints, Double[] rYPoints) : base(penProp, null, null) { this.rXPoints = (Double[])Array.CreateInstance(typeof(Double), rXPoints.Length); this.rYPoints = (Double[])Array.CreateInstance(typeof(Double), rYPoints.Length); for (int i = 0; i < rXPoints.Length; i++) { this.rXPoints[i] = RT.rPointFromMM(rXPoints[i]); this.rYPoints[i] = RT.rPointFromMM(rYPoints[i]); } }
/// <summary>Creates a column definition object with metric values.</summary> /// <param name="tlm">Table layout manager of this column</param> /// <param name="sHeader">Header of the column</param> /// <param name="rWidthMM">Width of the column</param> public ColumnMM(TableLayoutManager tlm, String sHeader, Double rWidthMM) : base(tlm, sHeader, RT.rPointFromMM(rWidthMM)) { }
//----------------------------------------------------------------------------------------------------x /// <summary>This method will creates a new container that will be added to the parent container at the specified position (metric version).</summary> /// <param name="container_Parent">Parent container</param> /// <param name="rX_MM">X coordinate of the new container (mm)</param> /// <param name="rY_MM">Y coordinate of the new container (mm)</param> public Container container_CreateMM(Container container_Parent, Double rX_MM, Double rY_MM) { return(container_Create(container_Parent, RT.rPointFromMM(rX_MM), RT.rPointFromMM(rY_MM))); }
//----------------------------------------------------------------------------------------------------x /// <summary>Makes a new line (metric version).</summary> /// <param name="rLineFeedMM">Line feed in millimeters</param> public void NewLineMM(Double rLineFeedMM) { NewLine(RT.rPointFromMM(rLineFeedMM)); }
/// <summary> /// /// </summary> public StaticContainerMM(Double rWidth, Double rHeight) : base(RT.rPointFromMM(rWidth), RT.rPointFromMM(rHeight)) { }
//------------------------------------------------------------------------------------------28.07.2006 /// <overloads> /// <summary>Creates a new font property object with metric values.</summary> /// <remarks> /// After a FontPropMM object has been created, the format and style attributes of the object can be changed. /// The size of the font can be specified in millimeters, height of the letter "H". /// </remarks> /// </overloads> /// /// <summary>Creates a new font property object with the specified size (in millimeters) and color.</summary> /// <param name="fontDef">Font definition</param> /// <param name="rSizeMM">Size of the font in millimeters, height of the letter "H".</param> /// <param name="color">Color of the font</param> /// <remarks> /// After a FontPropMM object has been created, the format and style attributes of the object can be changed. /// The size of the font can be specified in millimeters, height of the letter "H". /// </remarks> /// <example><see cref="FontPropMM">FontPropMM constructor sample</see></example> public FontPropMM(FontDef fontDef, Double rSizeMM, Color color) : base(fontDef, RT.rPointFromMM(rSizeMM), color) { }
//------------------------------------------------------------------------------------------22.08.2006 /// <summary>Gets a line of text with a maximal width from the specified string (metric version).</summary> /// <param name="sText">Text</param> /// <param name="rWidthMaxMM">Maximal width of the text in millimeters</param> /// <param name="iStart">Start position in sText</param> /// <param name="textSplitMode">Text split mode</param> /// <returns>Text with the specified maximal width</returns> /// <remarks> /// The reference parameter <paramref name="iStart"/> must be initialized with the start position. /// After the call, it contains the new start position that can be used for a call of this method for the next line of text. /// </remarks> /// <example>Multiline text sample in <see cref="FontProp.sGetTextLine"/></example> public String sGetTextLineMM(String sText, Double rWidthMaxMM, ref Int32 iStart, TextSplitMode textSplitMode) { return(sGetTextLine(sText, RT.rPointFromMM(rWidthMaxMM), ref iStart, textSplitMode)); }
//----------------------------------------------------------------------------------------------------x /// <summary>Applies the specified clipping path to this report object.</summary> /// <param name="rX">X-coordinate of the clip path, in millimetres.</param> /// <param name="rAlignH">Horizontal alignment of the report object relative to [X].</param> /// <param name="rY">Y-coordinate of the clip path, in millimetres.</param> /// <param name="rAlignV">Vertical alignment of the report object relative to [Y].</param> /// <param name="repObj">The clipping path.</param> public void SetClip_MM(Double rX, Double rAlignH, Double rY, Double rAlignV, RepObj repObj) { SetClip(RT.rPointFromMM(rX), rAlignH, RT.rPointFromMM(rY), rAlignV, repObj); }
//----------------------------------------------------------------------------------------------------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.rPointFromMM(rX), RT.rPointFromMM(rY)) { }
public ColumnMM(ListLayoutManager llm, Double rWidthMM) : base(llm, RT.rPointFromMM(rWidthMM)) { }
//----------------------------------------------------------------------------------------------------x /// <summary>Initializes a new pen properties object</summary> /// <param name="report">Report to which this pen belongs</param> /// <param name="rWidthMM">Width of the pen in millimeter</param> /// <param name="color">Color of the pen</param> /// <param name="rPatternOn">Number of 1/72-units of the on-pattern</param> /// <param name="rPatternOff">Number of 1/72-units of the off-pattern</param> public PenPropMM(Report report, Double rWidthMM, Color color, Double rPatternOn, Double rPatternOff) : base(report, RT.rPointFromMM(rWidthMM), color, rPatternOn, rPatternOff) { }
/// <summary>Creates a column definition object with metric values.</summary> /// <param name="tlm">Table layout manager of this column</param> /// <param name="sHeader">Header of the column</param> /// <param name="rWidthMM">Width of the column</param> public TlmColumnMM(ListLayoutManager tlm, Double rWidthMM) : base(tlm, null, RT.rPointFromMM(rWidthMM)) { }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new Image object with millimeter values</summary> /// <param name="sFileName">Filename of the Image</param> /// <param name="rWidth">Width of the image in millimeter</param> /// <param name="rHeight">Height of the image in millimeter</param> public RepImageMM(String sFileName, Double rWidth, Double rHeight) : base(sFileName, RT.rPointFromMM(rWidth), RT.rPointFromMM(rHeight)) { }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new Image object with millimeter values</summary> /// <param name="stream">Image stream</param> /// <param name="rWidth">Width of the image in millimeter</param> /// <param name="rHeight">Height of the image in millimeter</param> public RepImageMM(Stream stream, Double rWidth, Double rHeight) : base(stream, RT.rPointFromMM(rWidth), RT.rPointFromMM(rHeight)) { }
//----------------------------------------------------------------------------------------------------x /// <summary>Adds a report object to the container and sets the alignment.</summary> /// <param name="rX">X-coordinate of the report object</param> /// <param name="rY">Y-coordinate of the report object</param> /// <param name="repObj">Report object to add to the container</param> public void AddRC_MM(Double rX, Double rY, RepObj repObj) { AddRC(RT.rPointFromMM(rX), RT.rPointFromMM(rY), repObj); }
//------------------------------------------------------------------------------------------02.05.2006 /// <summary>Truncates the text to the specified width in millimeters and adds three dots if necessary.</summary> /// <param name="sText">Text</param> /// <param name="rWidthMaxMM">Maximal width of the text in millimeters</param> /// <returns>Truncated text</returns> /// <remarks>This method truncates a string to the specified width.</remarks> /// <example>Truncate text sample in <see cref="FontProp.sTruncateText"/></example> public String sTruncateTextMM(String sText, Double rWidthMaxMM) { return(sTruncateText(sText, RT.rPointFromMM(rWidthMaxMM))); }
//----------------------------------------------------------------------------------------------------x /// <summary>Adds a report object to the cell at the current position with the specified offset (metric version).</summary> /// <remarks> /// The current horizontal position <see cref="TlmCell.rCurX"/> will be incremented by the width of the report object. /// <para>The horizontal offset <paramref name="rOfsH_MM"/> can be used for example to make a space in front of the report object. /// The vertical offset <paramref name="rOfsV_MM"/> can be used for example to adjust the vertical position of an image or to set super-/subscript fonts.</para> /// <para>For the inch version see <see cref="TlmCell.Add(System.Double,System.Double,RepObj)"/>.</para> /// </remarks> /// <param name="rOfsH_MM">Horizontal offset (mm)</param> /// <param name="rOfsV_MM">Vertical offset (mm)</param> /// <param name="repObj">Report object that will be added to the cell</param> /// <seealso cref="TlmCell.Add(System.Double,System.Double,RepObj)"/> public void AddMM(Double rOfsH_MM, Double rOfsV_MM, RepObj repObj) { Add(RT.rPointFromMM(rOfsH_MM), RT.rPointFromMM(rOfsV_MM), repObj); }
//------------------------------------------------------------------------------------------22.08.2006 /// <summary>Gets the best fitting font to put the text into the specified rectangle (metric version).</summary> /// <param name="sText">Text</param> /// <param name="rWidthMaxMM">Maximal width of the text in millimeters</param> /// <param name="rHeightMaxMM">Maximal height of the text in millimeters</param> /// <param name="rFontSizeMinMM">Minimal size of the font in millimeters, height of the letter "H"</param> /// <returns>Best fitting font</returns> /// <remarks> /// This method will try to fit the text into the rectangle with this font properties. /// If the text is too large to fit into the rectangle, the font size will be reduced down to <paramref name="rFontSizeMin"/>. /// </remarks> /// <example>Multiline text sample in <see cref="FontProp.fontProp_GetBestFit"/></example> public FontProp fontProp_GetBestFitMM(String sText, Double rWidthMaxMM, Double rHeightMaxMM, Double rFontSizeMinMM) { return(fontProp_GetBestFit(sText, RT.rPointFromMM(rWidthMaxMM), RT.rPointFromMM(rHeightMaxMM), RT.rPointFromMM(rFontSizeMinMM))); }
//----------------------------------------------------------------------------------------------------x /// <summary>Adds a report object to the container and sets the alignment (metric versîon).</summary> /// <param name="rX">X-coordinate of the report objectt in millimeter</param> /// <param name="rAlignH">Horizontal alignment of the report object relative to [X].</param> /// <param name="rY">Y-coordinate of the report objectt in millimeter</param> /// <param name="rAlignV">Vertical alignment of the report object relative to [Y].</param> /// <param name="repObj">Report object to add to the container</param> public void AddAlignedMM(Double rX, Double rAlignH, Double rY, Double rAlignV, RepObj repObj) { AddAligned(RT.rPointFromMM(rX), rAlignH, RT.rPointFromMM(rY), rAlignV, repObj); }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new filled rectangle object with a border line and millimeter values.</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 RepRectMM(PenProp penProp, BrushProp brushProp, Double rWidth, Double rHeight) : base(penProp, brushProp, RT.rPointFromMM(rWidth), RT.rPointFromMM(rHeight)) { }
//----------------------------------------------------------------------------------------------------x /// <summary>Adds a report object to the container, horizontally centered (metric version).</summary> /// <param name="rY">Y-coordinate of the report objectt in millimeter</param> /// <param name="repObj">Report object to add to the container</param> public void AddCB_MM(Double rY, RepObj repObj) { AddCB(RT.rPointFromMM(rY), repObj); }