ToolStripItemCollection.Find(String, Boolean) Yöntem

Tanım

Öğeleri adlarına göre arar ve eşleşen tüm denetimlerden oluşan bir dizi döndürür.

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

Parametreler

key
String

Aranacak ToolStripItemCollection öğe adı.

searchAllChildren
Boolean

trueparametresi tarafından key belirtilen alt öğelerini ToolStripItem aramak için; aksi takdirde , false.

Döndürülenler

Arama ToolStripItem sonuçları dizisi.

Özel durumlar

key Parametresi veya null boş.

Şunlara uygulanır