VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Codecs.ImageFiles.Ico Namespace / IconPageCollection Class / IndexOf(IconPage) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    IndexOf(IconPage) Method (IconPageCollection)
    In This Topic
    Determines the index of a specific page in the page collection.
    Syntax
    'Declaration
    
    Public Overrides Function IndexOf( _
    ByVal item
    The object to locate in the page collection.
    As IconPage _
    ) As System.Int32
    public override System.Int32 IndexOf(
    IconPage item
    )
    public: System.Int32 IndexOf(
    IconPage* item
    ); override
    public:
    System.Int32 IndexOf(
    IconPage^ item
    ); override

    Parameters

    item
    The object to locate in the page collection.

    Return Value

    The index of item if found in the list; otherwise, -1.
    Remarks

    If an object occurs multiple times in the list, the IndexOf method always returns the first instance found.

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also