예제 #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;
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
        //
        // 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));
        }
예제 #4
0
        //
        // .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;
        }
예제 #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));
 }
예제 #9
0
 protected PDFStyleValueBase(StyleKey key)
 {
     this.Key = key;
 }