Control.ControlCollection.Find(String, Boolean) 메서드

정의

해당 Name 속성으로 컨트롤을 검색하고 일치하는 모든 컨트롤의 배열을 빌드합니다.

public:
 cli::array <System::Windows::Forms::Control ^> ^ Find(System::String ^ key, bool searchAllChildren);
public System.Windows.Forms.Control[] Find(string key, bool searchAllChildren);
member this.Find : string * bool -> System.Windows.Forms.Control[]
Public Function Find (key As String, searchAllChildren As Boolean) As Control()

매개 변수

key
String

에서 찾을 키입니다 Control.ControlCollection.

searchAllChildren
Boolean

true모든 자식 컨트롤을 검색하려면 그렇지 않으면 . false

반품

일치하는 컨트롤을 포함하는 형식 Control 의 배열입니다.

예외

key 가거나 빈 문자열("")입니다 null .

적용 대상