ToolStripManager::FindToolStrip Method (String^)
.NET Framework (current version)
Namespace:
System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Return to top
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [UIPermissionAttribute(SecurityAction::Demand, Window = UIPermissionWindow::AllWindows)] static ToolStrip^ FindToolStrip( String^ toolStripName )
Parameters
- toolStripName
-
Type:
System::String^
A string specifying the name of the ToolStrip or derived ToolStrip type to find.
Return Value
Type: System.Windows.Forms::ToolStrip^The ToolStrip or one of its derived types as specified by the toolStripName parameter, or null if the ToolStrip is not found.
Use the FindToolStrip method to search for a ToolStrip or an object derived from ToolStrip. Derived types of ToolStrip are StatusStrip, MenuStrip, ToolStripDropDown, ToolStripDropDownMenu, and ContextMenuStrip. If the object of the search is not specifically a ToolStrip but one of these derived types, cast the return type as required.
.NET Framework
Available since 2.0
Available since 2.0
Show: