コード例 #1
0
 private Border(Document context, double width, BorderStyleType style, LineDash pattern)
     : base(context, new PdfDictionary(new PdfName[] { PdfName.Type }, new PdfDirectObject[] { PdfName.Border }))
 {
     Width   = width;
     Style   = style;
     Pattern = pattern;
 }
コード例 #2
0
 public MyPanel()
 {
     base.BackColor = Color.Transparent;
     base.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this._BorderColor = Color.Black;
     this._BorderStyle = BorderStyleType.None;
     this._BorderWidth = 1;
     this._Curvature = 0;
 }
コード例 #3
0
        //public static Border Wrap(PdfDirectObject baseObject)
        //{
        //    return baseObject?.Wrapper as Border ?? new Border(baseObject);
        //}
        #endregion

        #region interface
        #region private

        /**
         * <summary>Gets the code corresponding to the given value.</summary>
         */
        private static PdfName ToCode(BorderStyleType value)
        {
            return(StyleEnumCodes[value]);
        }
コード例 #4
0
 /**
  * <summary>Creates a reusable instance.</summary>
  */
 public Border(Document context, double width, BorderStyleType style) : this(context, width, style, null)
 {
 }
コード例 #5
0
 /**
  * <summary>Creates a non-reusable instance.</summary>
  */
 public Border(double width, BorderStyleType style) : this(null, width, style)
 {
 }
コード例 #6
0
 private DashStyle ConvertToDashStyle(BorderStyleType style)
 {
     return (DashStyle)style - 1;
 }