Beispiel #1
0
            public void ReIndexRange(string spreadsheetId, string sheetTitleId, string oldRangeString)
            {
                // Get appropriate Dictionary placeholder storing all the ranges associated with the sheet title id.
                IDictionary <string, LiveRange> rangesByRangeStrings = this._producedSheets[spreadsheetId][sheetTitleId].Item2;

                // Get range indexed to the provided oldRangeStirng.
                LiveRange rangeToReIndex = rangesByRangeStrings[oldRangeString];

                // Remove dictionary entry representing range indexed to the provided oldRangeStirng.
                rangesByRangeStrings.Remove(oldRangeString);

                // Re-index range using it current range string.
                rangesByRangeStrings.Add(rangeToReIndex.Range, rangeToReIndex);
            }
Beispiel #2
0
 // Removes provided
 public void RemoveSpecificRange(LiveRange range)
 {
     // Removes provided instance of LiveRange.
     this[range.SpreadsheetId][range.SheetTitleId].Item2.Remove(range.Range);
 }
Beispiel #3
0
 // Adds provided instance of the LiveRange into the live range factory production index.
 internal void AddSpecificRange(LiveRange range)
 {
     // Add live range into the live range factory production index.
     this[range.SpreadsheetId][range.SheetTitleId].Item2[range.Range] = range;
 }