CellPropertyCollection CellPropertyCollection CellPropertyCollection Class

Definition

Contains a collection of CellProperty objects contained by a Cell.

public ref class CellPropertyCollection sealed : System::Collections::ICollection
public sealed class CellPropertyCollection : System.Collections.ICollection
Public NotInheritable Class CellPropertyCollection
Implements ICollection
Inheritance
CellPropertyCollectionCellPropertyCollectionCellPropertyCollection
Implements

Examples

The following subroutine iterates through the CellPropertyCollection collection of a specified Cell.

Public Sub ListCellPropertyCollection(ByRef CellToCheck As Cell)  
    'Assumes CellToCheck is not null.  
    Dim cellProperty As CellProperty  

    Debug.WriteLine("Found " & CellToCheck.CellProperties.Count & _  
        " cell properties in cell:")  

    For Each cellProperty In CellToCheck.CellProperties  
        Debug.WriteLine("  Name:  " & cellProperty.Name)  
        Debug.WriteLine(" Value:  " & cellProperty.Value)  
    Next  
End Sub  

Remarks

The CellPropertyCollection is populated when a Cell is created. Each cell in a cellset can have zero or more intrinsic or custom cell properties associated with it, represented by CellProperty objects maintained by the CellPropertyCollection collection.

Properties

Count Count Count

Gets the number of CellProperty objects in the collection.

IsSynchronized IsSynchronized IsSynchronized

Gets a value indicating whether access to the collection is synchronized (thread safe).

Item[Int32] Item[Int32] Item[Int32]

Gets the specified CellProperty from the collection by its index. In Microsoft Visual C#, this property is the indexer for the CellPropertyCollection class.

Item[String] Item[String] Item[String]

Gets the specified CellProperty from the collection by its name. In Microsoft Visual C#, this property is the indexer for the CellPropertyCollection class.

SyncRoot SyncRoot SyncRoot

Gets an Object that can be used to synchronize access to the collection.

Methods

CopyTo(CellProperty[], Int32) CopyTo(CellProperty[], Int32) CopyTo(CellProperty[], Int32)

Copies the elements of the collection to the specified array.

Find(String) Find(String) Find(String)

Gets the specified CellProperty from the collection by its name.

GetEnumerator() GetEnumerator() GetEnumerator()

Gets an enumerator for iterating through the collection.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

Copies the elements of the CellPropertyCollection to an array, starting at a particular array index.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Gets an enumerator for iterating through the collection.

Applies to