Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / DefaultStyleCollection Class / GetEnumerator Method
Example


In This Topic
    GetEnumerator Method (DefaultStyleCollection)
    In This Topic
    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