Пример #1
0
 public bool EqualsValue(RTFBorderStyle b)
 {
     if (b == this)
     {
         return(true);
     }
     if (b == null)
     {
         return(false);
     }
     if (b._Bottom != this._Bottom ||
         b._Color != this._Color ||
         b._Left != this._Left ||
         b._Right != this._Right ||
         b._Style != this._Style ||
         b._Top != this._Top ||
         b._Thickness != this._Thickness)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Пример #2
0
        /// <summary>
        /// 复制对象
        /// </summary>
        /// <returns>复制品</returns>
        public RTFBorderStyle Clone()
        {
            RTFBorderStyle b = new RTFBorderStyle();

            b._Bottom    = this._Bottom;
            b._Color     = this._Color;
            b._Left      = this._Left;
            b._Right     = this._Right;
            b._Style     = this._Style;
            b._Top       = this._Top;
            b._Thickness = this._Thickness;
            return(b);
        }