Spread Windows Forms 12.0 Product Documentation
GetEnumerator Method (DefaultStyleCollection)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultStyleCollection Class : GetEnumerator Method
Gets an IEnumerator object for enumerating through the NamedStyle objects in the collection.
Syntax
'Declaration
 
Public Function GetEnumerator() As IEnumerator
'Usage
 
Dim instance As DefaultStyleCollection
Dim value As IEnumerator
 
value = instance.GetEnumerator()
public IEnumerator GetEnumerator()

Return Value

IEnumerator instance for enumerating the styles (NamedStyle objects) in the collection
Example

This example returns if there is another item in the collection.

FarPoint.Win.Spread.DefaultStyleCollection dsc = new FarPoint.Win.Spread.DefaultStyleCollection();
MessageBox.Show(dsc.GetEnumerator().MoveNext().ToString());
Dim dsc As New FarPoint.Win.Spread.DefaultStyleCollection
MessageBox.Show(dsc.GetEnumerator.MoveNext().ToString())
See Also

Reference

DefaultStyleCollection Class
DefaultStyleCollection Members