Esempio n. 1
0
        public static void FreezePanes(Excel app, Range range)
        {
            range.XlRange.Worksheet.Select();
            range.XlRange.Select();

            ExcelOperations.FreezePanes(app, true);
        }
Esempio n. 2
0
 public bool Intersects(Range range)
 {
     bool retValue = this.Intersects(range.XlRange);
     return retValue;
 }
Esempio n. 3
0
        public Range GetOffset(int rows, int columns)
        {
            XL.Range xlOffsetRng = this.XlRange.get_Offset(rows, columns);

            Range retValue = new Range(xlOffsetRng);
            return retValue;
        }
Esempio n. 4
0
        public Range GetIntersection(Range range)
        {
            XL.Range intersection = this.GetIntersection(range.XlRange);

            Range retValue = new Range(intersection);
            return retValue;
        }
Esempio n. 5
0
        public Range GetNamedRange(string name)
        {
            XL.Range xlRng = this.GetXlRangeByName(name);

            Range retValue = new Range(xlRng);
            return retValue;
        }
Esempio n. 6
0
 public void SetNamedRange(string name, Range range)
 {
     this.XlWorkbook.Names.Add(name, range.XlRange);
 }
Esempio n. 7
0
        public Range GetEntireWorksheetRange()
        {
            XL.Range entireWsRng = this.XlWorksheet.Cells.EntireRow.EntireColumn;

            Range retValue = new Range(entireWsRng);
            return retValue;
        }
Esempio n. 8
0
 public Range GetRange(string address)
 {
     Range retValue = new Range(this, address);
     return retValue;
 }
Esempio n. 9
0
        public Range GetA1Range()
        {
            XL.Range rng = this.XlWorksheet.Cells[1, 1];

            Range retValue = new Range(rng);
            return retValue;
        }
Esempio n. 10
0
        public Range GetUsedRange()
        {
            XL.Range usedRng = this.XlWorksheet.UsedRange;

            Range retValue = new Range(usedRng);
            return retValue;
        }
Esempio n. 11
0
        public Range GetRange(Range upperLeft, Range lowerRight)
        {
            XL.Range xlRng = this.XlWorksheet.Range[upperLeft.XlRange, lowerRight.XlRange];

            Range retValue = new Range(xlRng);
            return retValue;
        }
Esempio n. 12
0
        public Range GetRange(Range upperLeft, int numberOfRows, int numberOfColumns)
        {
            XL.Range xlEndRng = this.XlWorksheet.Cells[upperLeft.Row + numberOfRows - 1, upperLeft.Column + numberOfColumns - 1];

            XL.Range xlRng = this.XlWorksheet.Range[upperLeft.XlRange, xlEndRng];

            Range retValue = new Range(xlRng);
            return retValue;
        }
Esempio n. 13
0
 public Range GetRange(Range upperLeft, RangeSize size)
 {
     Range retValue = this.GetRange(upperLeft, size.Rows, size.Columns);
     return retValue;
 }