skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class CompressedCollection<T>

The class represents a collection of items. The collection is initialized with a default value. The collection is compressed because on the outside it looks like all indexes have their value set, but in reality, only the values explicitly set by the public API are stored.

Inheritance
System.Object
CompressedCollection<T>
CompressedExpressionCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Spreadsheet.Expressions.DataStructures
Assembly: Telerik.Windows.Documents.Spreadsheet.dll

Syntax

public class CompressedCollection<T> : IEnumerable<T>, IEnumerable
Type Parameters
T

The value type stored by the collection.

Constructors

CompressedCollection(Int32, Int32, T)

Initialize a instance of the CompressedCollection class.

Declaration
public CompressedCollection(int rowCount, int columnCount, T defaultValue)
Parameters
System.Int32 rowCount

The number of rows.

System.Int32 columnCount

The number of columns.

T defaultValue

The default value used to initialize all cells of the collection.

Properties

HasValues

If the collection really has any values.

Declaration
public bool HasValues { get; }
Property Value
System.Boolean

Item[Int32, Int32]

Indexer used to access a cell of the collection.

Declaration
public T this[int rowIndex, int columnIndex] { get; set; }
Parameters
System.Int32 rowIndex

The row index of the cell.

System.Int32 columnIndex

The column index of the cell.

Property Value
T

Length

The total number of items in the collection.

Declaration
public int Length { get; }
Property Value
System.Int32

Methods

GetEnumerator()

Enumerates the items of the collection.

Declaration
public IEnumerator<T> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<T>

The enumerator.

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

GetLength(Int32)

Returns the length of the chosen dimension.

Declaration
public int GetLength(int dimension)
Parameters
System.Int32 dimension

The dimension for which to get the length. 0 for rows, 1 for columns.

Returns
System.Int32

The number of items in the selected dimension.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

Implements
System.Collections.IEnumerable.GetEnumerator()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.