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.89.2704
Syntax
protected virtual ToolStripItem CreateButton(
	string name,
	string text,
	string toolTipText,
	Image image,
	EventHandler onClick,
	ToolStripItemDisplayStyle displayStyle = ToolStripItemDisplayStyle.ImageAndText
)

Parameters

name  String
The name of the ToolStripButton.
text  String
The text to display on the ToolStripButton.
toolTipText  String
Specify the text that appears as a ToolTip for a control.
image  Image
The image to display on the ToolStripButton.
onClick  EventHandler
An event handler that raises the Click event.
displayStyle  ToolStripItemDisplayStyle  (Optional)
Specify whether text and images are displayed on a ToolStripItem.

Return Value

ToolStripItem
Tool strip item
See Also