Пример #1
0
		/// <summary>
		/// Creates a filled rectangle delimited by this Area.
		/// </summary>
		/// <param name="BorderColor"></param>
		/// <param name="BorderWidth"></param>
		/// <param name="FillingColor"></param>
		/// <returns></returns>
		public PdfRectangle ToRectangle(Color BorderColor,double BorderWidth,Color FillingColor)
		{
			if (BorderWidth<=0) throw new Exception("BorderWidth must be grater than zero.");
			PdfRectangle pr=new PdfRectangle(this.PdfDocument,this,BorderColor,BorderWidth,FillingColor);
			return pr;
		}
Пример #2
0
		/// <summary>
		/// Creates a simple void rectangle delimited by this Area.
		/// </summary>
		/// <param name="BorderColor"></param>
		/// <param name="FillingColor"></param>
		/// <returns></returns>
		public PdfRectangle ToRectangle(Color BorderColor,Color FillingColor)
		{
			PdfRectangle pr=new PdfRectangle(this.PdfDocument,this,BorderColor,FillingColor);
			return pr;
		}
Пример #3
0
        /// <summary>
        /// Creates a simple void rectangle delimited by this Area.
        /// </summary>
        /// <param name="BorderColor"></param>
        /// <param name="FillingColor"></param>
        /// <returns></returns>
        public PdfRectangle ToRectangle(Color BorderColor, Color FillingColor)
        {
            PdfRectangle pr = new PdfRectangle(this.PdfDocument, this, BorderColor, FillingColor);

            return(pr);
        }
Пример #4
0
		/// <summary>
		/// adds a Pdf Element into this PdfPage.
		/// </summary>
		/// <param name="PdfRectangle"></param>
		public void Add(PdfRectangle PdfRectangle)
		{
			PdfRectangle.ID=this.PdfDocument.GetNextId;
			this.PagePdfObjects.Add(PdfRectangle);
		}
Пример #5
0
 /// <summary>
 /// adds a Pdf Element into this PdfPage.
 /// </summary>
 /// <param name="PdfRectangle"></param>
 public void Add(PdfRectangle PdfRectangle)
 {
     PdfRectangle.ID = this.PdfDocument.GetNextId;
     this.PagePdfObjects.Add(PdfRectangle);
 }