Spread for ASP.NET 7.0 Product Documentation
GetEnumerator Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultStyleCollection Class : GetEnumerator Method


Glossary Item Box

Gets an IEnumerator object for enumerating through the NamedStyle objects in the collection.

Syntax

Visual Basic (Declaration) 
Public Function GetEnumerator() As IEnumerator
Visual Basic (Usage)Copy Code
Dim instance As DefaultStyleCollection
Dim value As IEnumerator
 
value = instance.GetEnumerator()
C# 
public IEnumerator GetEnumerator()

Return Value

IEnumerator object for enumerating the NamedStyle objects in the collection

Remarks

This method returns an object for enumerating through the NamedStyle objects in the collection.

Example

This example gets the enumerator and displays a message.
C#Copy Code
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
Dim msg As String = dsc.GetEnumerator.MoveNext.ToString();
Response.Write("alert('" + msg + "')");
Visual BasicCopy Code
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection
Dim msg As String = dsc.GetEnumerator.MoveNext.ToString()
Response.Write("alert('" & msg & "')")

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.