ToolStripItemCollection.Find(String, Boolean) 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.
Searches for items by their name and returns an array of all matching controls.
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()
Parameters
- key
- String
The item name to search the ToolStripItemCollection for.
- searchAllChildren
- Boolean
true
to search child items of the ToolStripItem specified by the key
parameter; otherwise, false
.
Returns
A ToolStripItem array of the search results.
Exceptions
The key
parameter is null
or empty.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.