WebPartDisplayModeCollection.IndexOf Method (WebPartDisplayMode)
Returns the position of a particular member of the collection.
Assembly: System.Web (in System.Web.dll)
A WebPartDisplayMode that is a member of the collection.
Return ValueType: System.Int32
An integer that indicates the position of a particular object in the collection.
The WebPartDisplayMode objects, and you need to know the ordinal position (the index) of one object relative to the others.method is useful if you have multiple
Available since 2.0