コード例 #1
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 public pdfTableRowStyle(predefinedFont fontType, int fontSize, pdfColor fontColor, pdfColor bgColor)
 {
     _fontType = fontType;
     _fontSize = fontSize;
     _fontColor = fontColor;
     _bgColor = bgColor;
 }
コード例 #2
0
ファイル: pdfTableRowStyle.cs プロジェクト: renancosta7/SGMAC
 /// <summary>
 /// Class's constructor
 /// </summary>
 public pdfTableRowStyle(predefinedFont fontType, int fontSize, predefinedColor fontColor, predefinedColor bgColor)
 {
     _fontType = fontType;
     _fontSize = fontSize;
     _fontColor = new pdfColor(fontColor);
     _bgColor = new pdfColor(bgColor);
 }
コード例 #3
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="newContent">Text of the paragraph</param>
 /// <param name="newFontSize">Font's size</param>
 /// <param name="newFontType">Font's type</param>
 /// <param name="newCoordX">X position in the PDF document</param>
 /// <param name="newCoordY">Y position in the PDF document</param>
 /// <param name="newStrokeColor">Font's color</param>
 public paragraphElement(IEnumerable newContent, int newFontSize, predefinedFont newFontType, int newCoordX, int newCoordY, pdfColor newStrokeColor)
 {
     _content = newContent;
     _fontSize = newFontSize;
     _fontType = newFontType;
     _coordX = newCoordX;
     _coordY = newCoordY;
     _strokeColor = newStrokeColor;
 }
コード例 #4
0
ファイル: circleElement.cs プロジェクト: renancosta7/SGMAC
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="X">X position in the PDF document</param>
 /// <param name="Y">Y position in the PDF document</param>
 /// <param name="Ray">Ray of the circle</param>
 /// <param name="strokeColor">Color of circle's border</param>
 /// <param name="fillColor">Color of the circle</param>
 /// <param name="newWidth">Border's size</param>
 public circleElement(int X, int Y, int Ray, predefinedColor strokeColor, predefinedColor fillColor, int newWidth)
 {
     _coordX = X;
     _coordY = Y;
     _ray = Ray;
     _strokeColor = new pdfColor(strokeColor);
     _fillColor = new pdfColor(fillColor);
     _lineStyle = new pdfLineStyle(newWidth, predefinedLineStyle.csNormal);
 }
コード例 #5
0
ファイル: circleElement.cs プロジェクト: renancosta7/SGMAC
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="X">X position in the PDF document</param>
 /// <param name="Y">Y position in the PDF document</param>
 /// <param name="Ray">Ray of the circle</param>
 /// <param name="strokeColor">Color of circle's border</param>
 /// <param name="fillColor">Color of the circle</param>
 /// <param name="newStyle">Border's style</param>
 public circleElement(int X, int Y, int Ray, predefinedColor strokeColor, predefinedColor fillColor, predefinedLineStyle newStyle)
 {
     _coordX = X;
     _coordY = Y;
     _ray = Ray;
     _strokeColor = new pdfColor(strokeColor);
     _fillColor = new pdfColor(fillColor);
     _lineStyle = new pdfLineStyle(1, newStyle);
 }
コード例 #6
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="X">X position in the PDF document</param>
 /// <param name="Y">Y position in the PDF document</param>
 /// <param name="Ray">Ray of the circle</param>
 /// <param name="strokeColor">Color of circle's border</param>
 /// <param name="fillColor">Color of the circle</param>
 public circleElement(int X, int Y, int Ray, pdfColor strokeColor, pdfColor fillColor)
 {
     _coordX = X;
     _coordY = Y;
     _ray = Ray;
     _strokeColor = strokeColor;
     _fillColor = fillColor;
     _lineStyle = new pdfLineStyle(1, predefinedLineStyle.csNormal);
 }
コード例 #7
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="newContent">Text's content</param>
 /// <param name="newFontSize">Font's size</param>
 /// <param name="newFontType">Font's type</param>
 /// <param name="newCoordX">X position of the text in the page</param>
 /// <param name="newCoordY">Y position of the text in the page</param>
 /// <param name="newStrokeColor">Font's color</param>
 public textElement(string newContent, int newFontSize, predefinedFont newFontType, int newCoordX, int newCoordY, pdfColor newStrokeColor)
 {
     _content = newContent;
     _fontSize = newFontSize;
     _fontType = newFontType;
     _coordX = newCoordX;
     _coordY = newCoordY;
     _strokeColor = newStrokeColor;
 }
コード例 #8
0
 /// <summary>
 /// Method that adds a rectangle to the page object
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 /// <param name="newWidth">Border's width</param>
 public rectangleElement(int X, int Y, int X1, int Y1, predefinedColor strokeColor, predefinedColor fillColor, int newWidth)
 {
     _coordX      = X;
     _coordY      = Y;
     _coordX1     = X1;
     _coordY1     = Y1;
     _strokeColor = new pdfColor(strokeColor);
     _fillColor   = new pdfColor(fillColor);
     _lineStyle   = new pdfLineStyle(newWidth, predefinedLineStyle.csNormal);
 }
コード例 #9
0
ファイル: rectangleElement.cs プロジェクト: renancosta7/SGMAC
 /// <summary>
 /// Method that adds a rectangle to the page object
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 /// <param name="newWidth">Border's width</param>
 public rectangleElement(int X, int Y, int X1, int Y1, predefinedColor strokeColor, predefinedColor fillColor, int newWidth)
 {
     _coordX = X;
     _coordY = Y;
     _coordX1 = X1;
     _coordY1 = Y1;
     _strokeColor = new pdfColor(strokeColor);
     _fillColor = new pdfColor(fillColor);
     _lineStyle = new pdfLineStyle(newWidth, predefinedLineStyle.csNormal);
 }
コード例 #10
0
ファイル: pdfTable.cs プロジェクト: renancosta7/SGMAC
 /// <summary>
 /// Class's Constructor
 /// </summary>
 public pdfTable()
 {
     _tableHeader = new pdfTableHeader();
     _tableHeaderStyle = new pdfTableRowStyle(predefinedFont.csHelvetica, 10, predefinedColor.csBlack, predefinedColor.csWhite);
     _rowStyle = new  pdfTableRowStyle(predefinedFont.csHelvetica, 10, predefinedColor.csBlack, predefinedColor.csWhite);
     _alternateRowStyle = null;
     _borderSize = 1;
     _borderColor = new pdfColor(predefinedColor.csBlack);
     _cellpadding = 5;
 }
コード例 #11
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 public rectangleElement(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor)
 {
     _coordX = X;
     _coordY = Y;
     _coordX1 = X1;
     _coordY1 = Y1;
     _strokeColor = strokeColor;
     _fillColor = fillColor;
     _lineStyle = new pdfLineStyle(1, predefinedLineStyle.csNormal);
 }
コード例 #12
0
 /// <summary>
 /// Method that adds a rectangle to the page object [DEPRECATED]
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 /// <param name="newStyle">Border's style</param>
 public rectangleElement(int X, int Y, int X1, int Y1, predefinedColor strokeColor, predefinedColor fillColor, predefinedLineStyle newStyle)
 {
     _coordX      = X;
     _coordY      = Y;
     _coordX1     = X1;
     _coordY1     = Y1;
     _strokeColor = new pdfColor(strokeColor);
     _fillColor   = new pdfColor(fillColor);
     _lineStyle   = new pdfLineStyle(1, newStyle);
 }
コード例 #13
0
 /// <summary>
 /// Method that adds a rectangle to the page object
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 /// <param name="newWidth">Border's width</param>
 /// <param name="newStyle">Border's style</param>
 public rectangleElement(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int newWidth, predefinedLineStyle newStyle)
 {
     _coordX      = X;
     _coordY      = Y;
     _coordX1     = X1;
     _coordY1     = Y1;
     _strokeColor = strokeColor;
     _fillColor   = fillColor;
     _lineStyle   = new pdfLineStyle(newWidth, newStyle);
 }
コード例 #14
0
ファイル: rectangleElement.cs プロジェクト: renancosta7/SGMAC
 /// <summary>
 /// Method that adds a rectangle to the page object
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 /// <param name="newStyle">Border's style</param>
 public rectangleElement(int X, int Y, int X1, int Y1, predefinedColor strokeColor, predefinedColor fillColor, predefinedLineStyle newStyle)
 {
     _coordX = X;
     _coordY = Y;
     _coordX1 = X1;
     _coordY1 = Y1;
     _strokeColor = new pdfColor(strokeColor);
     _fillColor = new pdfColor(fillColor);
     _lineStyle = new pdfLineStyle(1, newStyle);
 }
コード例 #15
0
ファイル: lineElement.cs プロジェクト: renancosta7/SGMAC
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="X">X position in the PDF document</param>
 /// <param name="Y">Y position in the PDF document</param>
 /// <param name="X1">X1 position in the PDF document</param>
 /// <param name="Y1">Y1 position in the PDF document</param>	
 /// <param name="newWidth">Line's size</param>
 /// <param name="newStyle">Line's style</param>
 /// <param name="newColor">Line's color</param>
 public lineElement(int X, int Y, int X1, int Y1, int newWidth, predefinedLineStyle newStyle, predefinedColor newColor)
 {
     _coordX = X;
     _coordY = Y;
     _coordX1 = X1;
     _coordY1 = Y1;
     _strokeColor = new pdfColor(newColor);
     _lineStyle = new pdfLineStyle(newWidth, newStyle);
 }
コード例 #16
0
 /// <summary>
 /// Method that adds a paragraph to the page object
 /// </summary>
 /// <param name="newText">Text</param>
 /// <param name="x">X position of the text in the page</param>
 /// <param name="y">Y position of the text in the page</param>
 /// <param name="fontType">Font's type</param>
 /// <param name="fontSize">Font's size</param>
 /// <param name="parWidth">Paragraph's width</param>
 /// <param name="fontColor">Font's color</param>
 public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth, pdfColor fontColor)
 {
     paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth), fontSize, fontType, x, y, fontColor);
     _elements.Add(objParagraph);
     objParagraph = null;
 }
コード例 #17
0
 /// <summary>
 /// Method that adds a line to the page object
 /// </summary>
 /// <param name="X">X position of the line in the page</param>
 /// <param name="Y">Y position of the line in the page</param>
 /// <param name="X1">X1 position of the line in the page</param>
 /// <param name="Y1">Y1 position of the line in the page</param>
 /// <param name="lineColor">Line's color</param>
 /// <param name="lineWidth">Line's size</param>
 public void drawLine(int X, int Y, int X1, int Y1, pdfColor lineColor, int lineWidth)
 {
     lineElement objLine = new lineElement(X, Y, X1, Y1, lineWidth, lineColor);
     _elements.Add(objLine);
     objLine = null;
 }
コード例 #18
0
        /// <summary>
        /// Method that adds a rectangle to the page object
        /// </summary>
        /// <param name="X">X position of the rectangle in the page</param>
        /// <param name="Y">Y position of the rectangle in the page</param>
        /// <param name="X1">X1 position of the rectangle in the page</param>
        /// <param name="Y1">Y1 position of the rectangle in the page</param>
        /// <param name="strokeColor">Border's color</param>
        /// <param name="fillColor">Rectancle's color</param>
        /// <param name="borderWidth">Border's size</param>
        /// <param name="borderStyle">Border's style</param>
        public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int borderWidth, predefinedLineStyle borderStyle)
        {
            rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor, borderWidth, borderStyle);

            _persistentElements.Add(objRectangle);
            objRectangle = null;
        }
コード例 #19
0
        /// <summary>
        /// Method that adds a line to the page object
        /// </summary>
        /// <param name="X">X position of the line in the page</param>
        /// <param name="Y">Y position of the line in the page</param>
        /// <param name="X1">X1 position of the line in the page</param>
        /// <param name="Y1">Y1 position of the line in the page</param>
        /// <param name="lineStyle">Line's style</param>
        /// <param name="lineColor">Line's color</param>
        /// <param name="lineWidth">Line's size</param>
        public void drawLine(int X, int Y, int X1, int Y1, predefinedLineStyle lineStyle, pdfColor lineColor, int lineWidth)
        {
            lineElement objLine = new lineElement(X, Y, X1, Y1, lineWidth, lineStyle, lineColor);

            _persistentElements.Add(objLine);
            objLine = null;
        }
コード例 #20
0
 /// <summary>
 /// Method that adds a rectangle to the page object
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 /// <param name="borderWidth">Border's size</param>
 /// <param name="borderStyle">Border's style</param>
 public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int borderWidth, predefinedLineStyle borderStyle)
 {
     rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor, borderWidth, borderStyle);
     _persistentElements.Add(objRectangle);
     objRectangle = null;
 }
コード例 #21
0
 /// <summary>
 /// Method that adds a rectangle to the page object
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor)
 {
     rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor);
     _persistentElements.Add(objRectangle);
     objRectangle = null;
 }
コード例 #22
0
 /// <summary>
 /// Method that adds a line to the page object
 /// </summary>
 /// <param name="X">X position of the line in the page</param>
 /// <param name="Y">Y position of the line in the page</param>
 /// <param name="X1">X1 position of the line in the page</param>
 /// <param name="Y1">Y1 position of the line in the page</param>
 /// <param name="lineStyle">Line's style</param>
 /// <param name="lineColor">Line's color</param>
 /// <param name="lineWidth">Line's size</param>
 public void drawLine(int X, int Y, int X1, int Y1, predefinedLineStyle lineStyle, pdfColor lineColor, int lineWidth)
 {
     lineElement objLine = new lineElement(X, Y, X1, Y1, lineWidth, lineStyle, lineColor);
     _persistentElements.Add(objLine);
     objLine = null;
 }
コード例 #23
0
 /// <summary>
 /// Method that adds a line to the page object
 /// </summary>
 /// <param name="X">X position of the line in the page</param>
 /// <param name="Y">Y position of the line in the page</param>
 /// <param name="X1">X1 position of the line in the page</param>
 /// <param name="Y1">Y1 position of the line in the page</param>
 /// <param name="lineColor">Line's color</param>
 public void drawLine(int X, int Y, int X1, int Y1, pdfColor lineColor)
 {
     lineElement objLine = new lineElement(X, Y, X1, Y1, lineColor);
     _persistentElements.Add(objLine);
     objLine = null;
 }
コード例 #24
0
 /// <summary>
 /// Method that adds a circle to the page object
 /// </summary>
 /// <param name="X">X position of the circle in the page</param>
 /// <param name="Y">Y position of the circle in the page</param>
 /// <param name="ray">Circle's ray</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Circle's color</param>
 /// <param name="borderStyle">Border's style</param>
 /// <param name="borderWidth">Border's size</param>
 public void drawCircle(int X, int Y, int ray, pdfColor strokeColor, pdfColor fillColor, predefinedLineStyle borderStyle, int borderWidth)
 {
     circleElement objCircle = new circleElement(X, Y, ray, strokeColor, fillColor, borderWidth, borderStyle);
     _persistentElements.Add(objCircle);
     objCircle = null;
 }
コード例 #25
0
 /// <summary>
 /// Method that adds a circle to the page object
 /// </summary>
 /// <param name="X">X position of the circle in the page</param>
 /// <param name="Y">Y position of the circle in the page</param>
 /// <param name="ray">Circle's ray</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Circle's color</param>
 public void drawCircle(int X, int Y, int ray, pdfColor strokeColor, pdfColor fillColor)
 {
     circleElement objCircle = new circleElement(X, Y, ray, strokeColor, fillColor);
     _persistentElements.Add(objCircle);
     objCircle = null;
 }
コード例 #26
0
 /// <summary>
 /// Method that adds a paragraph to the page object
 /// </summary>
 /// <param name="newText">Interface IEnumerable that contains paragraphLine objects</param>
 /// <param name="x">X position of the text in the page</param>
 /// <param name="y">Y position of the text in the page</param>
 /// <param name="fontType">Font's type</param>
 /// <param name="fontSize">Font's size</param>
 /// <param name="fontColor">Font's color</param>
 public void addParagraph(IEnumerable newText, int x, int y, predefinedFont fontType, int fontSize, pdfColor fontColor)
 {
     try {
         paragraphElement objParagraph = new paragraphElement(newText, fontSize, fontType, x, y, fontColor);
         _persistentElements.Add(objParagraph);
         objParagraph = null;
     } catch (pdfIncorrectParagraghException ex) {
         throw new pdfIncorrectParagraghException();
     }
 }
コード例 #27
0
ファイル: pdfPage.cs プロジェクト: 921138129/pdf-uwp
        /// <summary>
        /// Method that adds a paragraph to the page object
        /// </summary>
        /// <param name="newText">Text</param>
        /// <param name="x">X position of the text in the page</param>
        /// <param name="y">Y position of the text in the page</param>
        /// <param name="fontType">Font's type</param>
        /// <param name="fontSize">Font's size</param>
        /// <param name="parWidth">Paragraph's width</param>
        /// <param name="fontColor">Font's color</param>
        public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth, pdfColor fontColor)
        {
            paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth), fontSize, fontType, x, y, fontColor);

            _elements.Add(objParagraph);
            objParagraph = null;
        }
コード例 #28
0
        /// <summary>
        /// Method that adds a rectangle to the page object
        /// </summary>
        /// <param name="X">X position of the rectangle in the page</param>
        /// <param name="Y">Y position of the rectangle in the page</param>
        /// <param name="X1">X1 position of the rectangle in the page</param>
        /// <param name="Y1">Y1 position of the rectangle in the page</param>
        /// <param name="strokeColor">Border's color</param>
        /// <param name="fillColor">Rectancle's color</param>
        public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor)
        {
            rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor);

            _persistentElements.Add(objRectangle);
            objRectangle = null;
        }
コード例 #29
0
ファイル: pdfPage.cs プロジェクト: 921138129/pdf-uwp
        /// <summary>
        /// Method that adds a rectangle to the page object
        /// </summary>
        /// <param name="X">X position of the rectangle in the page</param>
        /// <param name="Y">Y position of the rectangle in the page</param>
        /// <param name="X1">X1 position of the rectangle in the page</param>
        /// <param name="Y1">Y1 position of the rectangle in the page</param>
        /// <param name="strokeColor">Border's color</param>
        /// <param name="fillColor">Rectancle's color</param>
        /// <param name="borderWidth">Border's size</param>
        public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int borderWidth)
        {
            rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor, borderWidth);

            _elements.Add(objRectangle);
            objRectangle = null;
        }
コード例 #30
0
 /// <summary>
 /// Method that adds a rectangle to the page object
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 /// <param name="newWidth">Border's width</param>
 /// <param name="newStyle">Border's style</param>
 public rectangleElement(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int newWidth, predefinedLineStyle newStyle)
 {
     _coordX = X;
     _coordY = Y;
     _coordX1 = X1;
     _coordY1 = Y1;
     _strokeColor = strokeColor;
     _fillColor = fillColor;
     _lineStyle = new pdfLineStyle(newWidth, newStyle);
 }
コード例 #31
0
 /// <summary>
 /// Method that adds a paragraph to the page object
 /// </summary>
 /// <param name="newText">Interface IEnumerable that contains paragraphLine objects</param>
 /// <param name="x">X position of the text in the page</param>
 /// <param name="y">Y position of the text in the page</param>
 /// <param name="fontType">Font's type</param>
 /// <param name="fontSize">Font's size</param>
 /// <param name="fontColor">Font's color</param>
 public void addParagraph(IEnumerable newText, int x, int y, predefinedFont fontType, int fontSize, pdfColor fontColor)
 {
     try {
     paragraphElement objParagraph = new paragraphElement(newText, fontSize, fontType, x, y, fontColor);
     _persistentElements.Add(objParagraph);
     objParagraph = null;
     } catch (pdfIncorrectParagraghException ex) {
         UnityEngine.Debug.Log ( ex );
         throw new pdfIncorrectParagraghException();
     }
 }
コード例 #32
0
 /// <summary>
 /// Method that adds a rectangle to the page object
 /// </summary>
 /// <param name="X">X position of the rectangle in the page</param>
 /// <param name="Y">Y position of the rectangle in the page</param>
 /// <param name="X1">X1 position of the rectangle in the page</param>
 /// <param name="Y1">Y1 position of the rectangle in the page</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Rectancle's color</param>
 /// <param name="borderWidth">Border's size</param>
 public void drawRectangle(int X, int Y, int X1, int Y1, pdfColor strokeColor, pdfColor fillColor, int borderWidth)
 {
     rectangleElement objRectangle = new rectangleElement(X, Y, X1, Y1, strokeColor, fillColor, borderWidth);
     _elements.Add(objRectangle);
     objRectangle = null;
 }
コード例 #33
0
 /// <summary>
 /// Method that adds a paragraph to the page object
 /// </summary>
 /// <param name="newText">Text</param>
 /// <param name="x">X position of the text in the page</param>
 /// <param name="y">Y position of the text in the page</param>
 /// <param name="fontType">Font's type</param>
 /// <param name="fontSize">Font's size</param>
 /// <param name="parWidth">Paragraph's width</param>
 /// <param name="lineHeight">Line's height</param>
 /// <param name="parAlign">Paragraph's alignment</param>
 /// <param name="fontColor">Font's color</param>
 public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth, int lineHeight, predefinedAlignment parAlign, pdfColor fontColor)
 {
     paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth, lineHeight, parAlign), fontSize, fontType, x, y, fontColor);
     _persistentElements.Add(objParagraph);
     objParagraph = null;
 }
コード例 #34
0
 /// <summary>
 /// Method that adds a circle to the page object
 /// </summary>
 /// <param name="X">X position of the circle in the page</param>
 /// <param name="Y">Y position of the circle in the page</param>
 /// <param name="ray">Circle's ray</param>
 /// <param name="strokeColor">Border's color</param>
 /// <param name="fillColor">Circle's color</param>
 /// <param name="borderWidth">Border's size</param>
 public void drawCircle(int X, int Y, int ray, pdfColor strokeColor, pdfColor fillColor, int borderWidth)
 {
     circleElement objCircle = new circleElement(X, Y, ray, strokeColor, fillColor, borderWidth);
     _elements.Add(objCircle);
     objCircle = null;
 }
コード例 #35
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="newContent">Text of the paragraph</param>
 /// <param name="newFontSize">Font's size</param>
 /// <param name="newFontType">Font's type</param>
 /// <param name="newCoordX">X position in the PDF document</param>
 /// <param name="newCoordY">Y position in the PDF document</param>
 /// <param name="newStrokeColor">Font's color</param>
 public paragraphElement(IEnumerable newContent, int newFontSize, predefinedFont newFontType, int newCoordX, int newCoordY, pdfColor newStrokeColor)
 {
     _content     = newContent;
     _fontSize    = newFontSize;
     _fontType    = newFontType;
     _coordX      = newCoordX;
     _coordY      = newCoordY;
     _strokeColor = newStrokeColor;
 }
コード例 #36
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 public pdfTableRowStyle(predefinedFont fontType, int fontSize, pdfColor fontColor, pdfColor bgColor)
 {
     _fontType  = fontType;
     _fontSize  = fontSize;
     _fontColor = fontColor;
     _bgColor   = bgColor;
 }
コード例 #37
0
        /// <summary>
        /// Method that adds a text element to the page object
        /// </summary>
        /// <param name="newText">Text</param>
        /// <param name="X">X position of the text in the page</param>
        /// <param name="Y">Y position of the text in the page</param>
        /// <param name="fontType">Font's type</param>
        /// <param name="fontSize">Font's size</param>
        /// <param name="fontColor">Font's color</param>
        public void addText(string newText, int X, int Y, predefinedFont fontType, int fontSize, pdfColor fontColor)
        {
            textElement objText = new textElement(newText, fontSize, fontType, X, Y, fontColor);

            _persistentElements.Add(objText);
            objText = null;
        }
コード例 #38
0
ファイル: lineElement.cs プロジェクト: renancosta7/SGMAC
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="X">X position in the PDF document</param>
 /// <param name="Y">Y position in the PDF document</param>
 /// <param name="X1">X1 position in the PDF document</param>
 /// <param name="Y1">Y1 position in the PDF document</param>	
 /// <param name="newColor">Line's color</param>
 public lineElement(int X, int Y, int X1, int Y1, predefinedColor newColor)
 {
     _coordX = X;
     _coordY = Y;
     _coordX1 = X1;
     _coordY1 = Y1;
     _strokeColor = new pdfColor(newColor);
     _lineStyle = new pdfLineStyle(1,predefinedLineStyle.csNormal);
 }
コード例 #39
0
        /// <summary>
        /// Method that adds a paragraph to the page object
        /// </summary>
        /// <param name="newText">Text</param>
        /// <param name="x">X position of the text in the page</param>
        /// <param name="y">Y position of the text in the page</param>
        /// <param name="fontType">Font's type</param>
        /// <param name="fontSize">Font's size</param>
        /// <param name="parWidth">Paragraph's width</param>
        /// <param name="lineHeight">Line's height</param>
        /// <param name="parAlign">Paragraph's alignment</param>
        /// <param name="fontColor">Font's color</param>
        public void addParagraph(string newText, int x, int y, predefinedFont fontType, int fontSize, int parWidth, int lineHeight, predefinedAlignment parAlign, pdfColor fontColor)
        {
            paragraphElement objParagraph = new paragraphElement(textAdapter.formatParagraph(newText, fontSize, fontType, parWidth, lineHeight, parAlign), fontSize, fontType, x, y, fontColor);

            _persistentElements.Add(objParagraph);
            objParagraph = null;
        }
コード例 #40
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="X">X position in the PDF document</param>
 /// <param name="Y">Y position in the PDF document</param>
 /// <param name="X1">X1 position in the PDF document</param>
 /// <param name="Y1">Y1 position in the PDF document</param>
 /// <param name="newWidth">Line's size</param>
 /// <param name="newStyle">Line's style</param>
 /// <param name="newColor">Line's color</param>
 public lineElement(int X, int Y, int X1, int Y1, int newWidth, predefinedLineStyle newStyle, pdfColor newColor)
 {
     _coordX      = X;
     _coordY      = Y;
     _coordX1     = X1;
     _coordY1     = Y1;
     _strokeColor = newColor;
     _lineStyle   = new pdfLineStyle(newWidth, newStyle);
 }
コード例 #41
0
 /// <summary>
 /// Method that adds a text element to the page object
 /// </summary>
 /// <param name="newText">Text</param>
 /// <param name="X">X position of the text in the page</param>
 /// <param name="Y">Y position of the text in the page</param>
 /// <param name="fontType">Font's type</param>
 /// <param name="fontSize">Font's size</param>
 /// <param name="fontColor">Font's color</param>
 public void addText(string newText, int X, int Y, predefinedFont fontType, int fontSize, pdfColor fontColor)
 {
     textElement objText = new textElement(newText, fontSize, fontType, X, Y, fontColor);
     _persistentElements.Add(objText);
     objText = null;
 }
コード例 #42
0
ファイル: textElement.cs プロジェクト: reputage/seedQuest
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="newContent">Text's content</param>
 /// <param name="newFontSize">Font's size</param>
 /// <param name="newFontType">Font's type</param>
 /// <param name="newCoordX">X position of the text in the page</param>
 /// <param name="newCoordY">Y position of the text in the page</param>
 /// <param name="newStrokeColor">Font's color</param>
 public textElement(string newContent, int newFontSize, predefinedFont newFontType, int newCoordX, int newCoordY, pdfColor newStrokeColor)
 {
     _content     = newContent;
     _fontSize    = newFontSize;
     _fontType    = newFontType;
     _coordX      = newCoordX;
     _coordY      = newCoordY;
     _strokeColor = newStrokeColor;
 }
コード例 #43
0
 /// <summary>
 /// Class's constructor
 /// </summary>
 /// <param name="X">X position in the PDF document</param>
 /// <param name="Y">Y position in the PDF document</param>
 /// <param name="Ray">Ray of the circle</param>
 /// <param name="strokeColor">Color of circle's border</param>
 /// <param name="fillColor">Color of the circle</param>
 /// <param name="newWidth">Border's size</param>
 /// <param name="newStyle">Border's style</param>
 public circleElement(int X, int Y, int Ray, pdfColor strokeColor, pdfColor fillColor, int newWidth, predefinedLineStyle newStyle)
 {
     _coordX = X;
     _coordY = Y;
     _ray = Ray;
     _strokeColor = strokeColor;
     _fillColor = fillColor;
     _lineStyle = new pdfLineStyle(newWidth, newStyle);
 }