TreeNodeStyleCollection.IndexOf(TreeNodeStyle) 메서드

정의

컬렉션에서 지정된 TreeNodeStyle 개체의 인덱스를 결정합니다.

public:
 int IndexOf(System::Web::UI::WebControls::TreeNodeStyle ^ style);
public int IndexOf(System.Web.UI.WebControls.TreeNodeStyle style);
member this.IndexOf : System.Web.UI.WebControls.TreeNodeStyle -> int
Public Function IndexOf (style As TreeNodeStyle) As Integer

매개 변수

style
TreeNodeStyle

찾을 위치입니다 TreeNodeStyle .

반품

(있는 경우) 내에서 style처음 발견되는 인덱스(있는 경우)의 TreeNodeStyleCollection 인덱스(0부터 시작)이고, 그렇지 않으면 -1입니다.

설명

메서드를 IndexOf 사용하여 개체에서 지정된 TreeNodeStyle 개체 TreeNodeStyleCollection 의 인덱스(0부터 시작하는 인덱스)를 확인합니다. 노드가 컬렉션에 없으면 메서드는 -1을 반환합니다.

메모

지정된 TreeNodeStyle 개체가 컬렉션에 여러 번 나타나면 첫 번째 항목의 인덱스가 반환됩니다.

적용 대상

추가 정보