StatusStrip.CreateDefaultItem(String, Image, EventHandler) Method
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.
Creates a default ToolStripStatusLabel with the specified text, image, and event handler on a new StatusStrip instance.
protected public:
override System::Windows::Forms::ToolStripItem ^ CreateDefaultItem(System::String ^ text, System::Drawing::Image ^ image, EventHandler ^ onClick);
protected internal override System.Windows.Forms.ToolStripItem CreateDefaultItem(string text, System.Drawing.Image image, EventHandler onClick);
protected internal override System.Windows.Forms.ToolStripItem CreateDefaultItem(string? text, System.Drawing.Image? image, EventHandler? onClick);
override this.CreateDefaultItem : string * System.Drawing.Image * EventHandler -> System.Windows.Forms.ToolStripItem
Protected Friend Overrides Function CreateDefaultItem (text As String, image As Image, onClick As EventHandler) As ToolStripItem
- text
- String
The text to use for the ToolStripStatusLabel. If the text
parameter is a hyphen (-), this method creates a ToolStripSeparator.
- image
- Image
The Image to display on the ToolStripStatusLabel.
- onClick
- EventHandler
An event handler that raises the Click event when the ToolStripStatusLabel is clicked.
A ToolStripStatusLabel(String, Image, EventHandler), or a ToolStripSeparator if the text
parameter is a hyphen (-).
Use the CreateDefaultItem method to add a ToolStripStatusLabel with commonly used characteristics to a StatusStrip.
Produkt | Verzie |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: