Пример #1
0
 /// <summary>
 /// Specifies whether this Dt.Xls.ExcelRect contains the same coordinates as the specified Dt.Xls.ExcelRect
 /// </summary>
 /// <param name="value">A Dt.Xls.ExcelRect object to compare</param>
 /// <returns>rue if obj is a Dt.Xls.ExcelRect and has the same coordinates as this Dt.Xls.ExcelRect</returns>
 public bool Equals(ExcelRect value)
 {
     if (value == null)
     {
         return(false);
     }
     return((((this.Left == value.Left) && (this.Top == value.Top)) && (this.Width == value.Width)) && (this.Height == value.Height));
 }
Пример #2
0
        public IExcelRect GetWindow(ref bool hidden, ref bool iconic)
        {
            ExcelRect rect = null;

            if (this._workbook.ExcelRect != null)
            {
                rect = new ExcelRect(this._workbook.ExcelRect.Left, this._workbook.ExcelRect.Top, this._workbook.ExcelRect.Width, this._workbook.ExcelRect.Height);
            }
            hidden = this._workbook.IsWindowHidden;
            iconic = this._workbook.IsWindowDisplayAsIcon;
            return(rect);
        }