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; }
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; }
//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]); }
/** * <summary>Creates a reusable instance.</summary> */ public Border(Document context, double width, BorderStyleType style) : this(context, width, style, null) { }
/** * <summary>Creates a non-reusable instance.</summary> */ public Border(double width, BorderStyleType style) : this(null, width, style) { }
private DashStyle ConvertToDashStyle(BorderStyleType style) { return (DashStyle)style - 1; }