Beispiel #1
0
 /// <summary>
 /// Creates a new Border style
 /// </summary>
 public BorderSideStyle(Sides forSide, StyleKey forKey, PDFStyleKey <PDFColor> colorKey, PDFStyleKey <PDFUnit> widthkey, PDFStyleKey <LineType> lineStyleKey, PDFStyleKey <PDFDash> dashkey) :
     base(forKey)
 {
     _side  = forSide;
     _color = colorKey;
     _width = widthkey;
     _line  = lineStyleKey;
     _dash  = dashkey;
 }
 /// <summary>
 /// Removes any associated value in this items style for the provided key;
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public bool RemoveValue(StyleKey key)
 {
     return(this.AssertOwner().RemoveValue(key));
 }
        //
        // public methods
        //

        #region public bool IsDefined(StyleKey valuekey)

        /// <summary>
        /// Returns true if the style key has a defined value in this items style
        /// </summary>
        /// <param name="valuekey"></param>
        /// <returns></returns>
        public bool IsDefined(StyleKey valuekey)
        {
            return(this.AssertOwner().IsValueDefined(valuekey));
        }
        //
        // .ctor
        //

        #region protected StyleItemBase(StyleKey key)

        /// <summary>
        /// Protected Constructor for the style item base
        /// </summary>
        /// <param name="key"></param>
        protected StyleItemBase(StyleKey key)
            : base(key.StyleItemKey)
        {
            this._itemkey = key;
        }
Beispiel #5
0
        //
        // .ctor
        //

        #region public PDFBorderStyle()


        public BorderSideStyle(Sides forSide, StyleKey forKey)
            : this(forSide, forKey, StyleKeys.BorderColorKey, StyleKeys.BorderWidthKey, StyleKeys.BorderStyleKey, StyleKeys.BorderDashKey)
        {
        }
 public bool Contains(StyleKey key)
 {
     return(this._itemsbykey.ContainsKey(key));
 }
 public StyleItemBase this[StyleKey key]
 {
     get { return(this._itemsbykey[key]); }
 }
 public bool TryGetItem(StyleKey key, out StyleItemBase found)
 {
     return(this._itemsbykey.TryGetValue(key, out found));
 }
Beispiel #9
0
 protected PDFStyleValueBase(StyleKey key)
 {
     this.Key = key;
 }