WebPartCollection.IndexOf(WebPart) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the position of a particular member of the collection.
public:
int IndexOf(System::Web::UI::WebControls::WebParts::WebPart ^ value);
public int IndexOf (System.Web.UI.WebControls.WebParts.WebPart value);
member this.IndexOf : System.Web.UI.WebControls.WebParts.WebPart -> int
Public Function IndexOf (value As WebPart) As Integer
Parameters
Returns
An integer that indicates the position of a particular object in the collection.
Remarks
The IndexOf method is useful if you have multiple WebPart controls on a Web Parts page, and you need to know the ordinal position of one control relative to the others.
Applies to
See also
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.