예제 #1
0
        /// <summary>
        /// Creates a Circle outside the Area
        /// </summary>
        /// <param name="BorderColor"></param>
        /// <returns></returns>
        public PdfCircle OuterCircle(System.Drawing.Color BorderColor)
        {
            PdfCircle pc = new PdfCircle();

            pc.AxesArea    = this.OuterArea(this.width * (double)0.40, this.height * (double)0.40);
            pc.BorderColor = BorderColor;
            return(pc);
        }
예제 #2
0
        /// <summary>
        /// Creates a Circle inside the Area
        /// </summary>
        /// <param name="BorderColor"></param>
        /// <returns></returns>
        public PdfCircle InnerCircle(System.Drawing.Color BorderColor)
        {
            PdfCircle pc = new PdfCircle();

            pc.AxesArea    = this;
            pc.BorderColor = BorderColor;
            return(pc);
        }
예제 #3
0
        /// <summary>
        /// Creates a Circle outside the Area
        /// </summary>
        /// <param name="BorderColor"></param>
        /// <param name="StrokeWidth"></param>
        /// <returns></returns>
        public PdfCircle OuterCircle(System.Drawing.Color BorderColor, double StrokeWidth)
        {
            if (StrokeWidth <= 0)
            {
                throw new Exception("StrokeWidth must be grater than zero.");
            }
            PdfCircle pc = new PdfCircle();

            pc.AxesArea    = this.OuterArea(this.width * (double)0.40, this.height * (double)0.40);
            pc.BorderColor = BorderColor;
            pc.strokeWidth = StrokeWidth;
            return(pc);
        }
예제 #4
0
        /// <summary>
        /// Creates a Circle inside the Area
        /// </summary>
        /// <param name="BorderColor"></param>
        /// <param name="StrokeWidth"></param>
        /// <returns></returns>
        public PdfCircle InnerCircle(System.Drawing.Color BorderColor, double StrokeWidth)
        {
            if (StrokeWidth <= 0)
            {
                throw new Exception("StrokeWidth must be grater than zero.");
            }
            PdfCircle pc = new PdfCircle();

            pc.AxesArea    = this;
            pc.BorderColor = BorderColor;
            pc.strokeWidth = StrokeWidth;
            return(pc);
        }
예제 #5
0
파일: PdfPage.cs 프로젝트: zhgl7688/-
 /// <summary>
 /// adds a Pdf Element into this PdfPage.
 /// </summary>
 /// <param name="PdfCircle"></param>
 public void Add(PdfCircle PdfCircle)
 {
     PdfCircle.ID = this.PdfDocument.GetNextId;
     this.PagePdfObjects.Add(PdfCircle);
 }