Click or drag to resize

PdfToolStripCreateButton Method

Create a new instance of ToolStripButton class with the specified name that displays the specified text and image and that raises the Click event.

Namespace:  Patagames.Pdf.Net.Controls.WinForms.ToolBars
Assembly:  Patagames.Pdf.WinForms (in Patagames.Pdf.WinForms.dll) Version: 4.35.2704
Syntax
protected virtual ToolStripItem CreateButton(
	string name,
	string text,
	string toolTipText,
	Image image,
	EventHandler onClick,
	ToolStripItemDisplayStyle displayStyle = ToolStripItemDisplayStyle.ImageAndText
)

Parameters

name
Type: SystemString
The name of the ToolStripButton.
text
Type: SystemString
The text to display on the ToolStripButton.
toolTipText
Type: SystemString
Specify the text that appears as a ToolTip for a control.
image
Type: System.DrawingImage
The image to display on the ToolStripButton.
onClick
Type: SystemEventHandler
An event handler that raises the Click event.
displayStyle (Optional)
Type: System.Windows.FormsToolStripItemDisplayStyle
Specify whether text and images are displayed on a ToolStripItem.

Return Value

Type: ToolStripItem
Tool strip item
See Also