property ConditionalFormats.Count as Long
Returns the number of objects in a collection.

TypeDescription
Long A long expression that counts the number of elements in the collection. 
Use the Item and Count property to enumerate the elements in the collection. Use the Expression property to get the expression of the format. 

The following VB sample enumerates all elements in the ConditionalFormats collection:

Dim c As ConditionalFormat
For Each c In Group1.ConditionalFormats
    Debug.Print c.Expression
Next

The following VB sample enumerates all elements in the ConditionalFormats collection:

Dim i As Integer
With Group1.ConditionalFormats
    For i = 0 To .Count - 1
        Debug.Print .Item(i).Expression
    Next
End With

The following C++ sample enumerates all elements in the ConditionalFormats collection:

for ( long i = 0; i < m_group.GetConditionalFormats().GetCount(); i++ )
{
	CConditionalFormat cf = m_group.GetConditionalFormats().GetItem( COleVariant( i ) );
	OutputDebugString( cf.GetExpression() );
}

The following VB.NET sample enumerates all elements in the ConditionalFormats collection:

Dim c As EXPLORERTREELib.ConditionalFormat
For Each c In AxGroup1.ConditionalFormats
    System.Diagnostics.Debug.Write(c.Expression)
Next

The following VB.NET sample enumerates all elements in the ConditionalFormats collection:

Dim i As Integer
With AxGroup1.ConditionalFormats
    For i = 0 To .Count - 1
        System.Diagnostics.Debug.Write(.Item(i).Expression)
    Next
End With

The following C# sample enumerates all elements in the ConditionalFormats collection:

foreach (EXPLORERTREELib.ConditionalFormat c in axGroup1.ConditionalFormats)
	System.Diagnostics.Debug.Write(c.Expression);

The following C# sample enumerates all elements in the ConditionalFormats collection:

for (int i = 0; i < axGroup1.ConditionalFormats.Count; i++)
	System.Diagnostics.Debug.Write(axGroup1.ConditionalFormats[i].Expression);

The following VFP sample enumerates all elements in the ConditionalFormats collection:

with thisform.Group1.ConditionalFormats
	for i = 0 to .Count - 1
		wait .Item(i).Expression
	next
endwith