ImageGear .NET v25.2 - Updated
ImageGear.Art Assembly / ImageGear.ART Namespace / ImGearARTPage Class / GetEnumerator Method
Example




In This Topic
    GetEnumerator Method (ImGearARTPage)
    In This Topic
    Gets the page enumerator class.
    Syntax
    'Declaration
     
    Public Function GetEnumerator() As ImGearARTPageEnumerator
    'Usage
     
    Dim instance As ImGearARTPage
    Dim value As ImGearARTPageEnumerator
     
    value = instance.GetEnumerator()
    public ImGearARTPageEnumerator GetEnumerator()
    public: ImGearARTPageEnumerator* GetEnumerator(); 
    public:
    ImGearARTPageEnumerator^ GetEnumerator(); 

    Return Value

    Example
    // Iterate through art marks on the page, foreach uses ImGearARTPage.GetEnumerator()
    //  to get a ImGearARTPageEnumerator which is used for the foreach. 
    foreach( ImGearARTMark igARTMark in igARTPage)
    {
        //Move the art mark.
        igARTMark.Move(50, 50);
    }
    ' Iterate through art marks on the page, foreach uses ImGearARTPage.GetEnumerator()
    '  to get a ImGearARTPageEnumerator which is used for the foreach. 
    For Each igARTMark As ImGearARTMark In igARTPage
        'Move the art mark.
        igARTMark.Move(50, 50)
    Next
    See Also