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[]

일치하는 컨트롤이 들어 있는 Control 형식의 배열입니다.

예외

keynull이거나 빈 문자열("")입니다.

적용 대상