| 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.ToolBarsAssembly: 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
)
Protected Overridable Function CreateButton (
name As String,
text As String,
toolTipText As String,
image As Image,
onClick As EventHandler,
Optional displayStyle As ToolStripItemDisplayStyle = ToolStripItemDisplayStyle.ImageAndText
) As ToolStripItem
protected:
virtual ToolStripItem^ CreateButton(
String^ name,
String^ text,
String^ toolTipText,
Image^ image,
EventHandler^ onClick,
ToolStripItemDisplayStyle displayStyle = ToolStripItemDisplayStyle::ImageAndText
)
abstract CreateButton :
name : string *
text : string *
toolTipText : string *
image : Image *
onClick : EventHandler *
?displayStyle : ToolStripItemDisplayStyle
(* Defaults:
let _displayStyle = defaultArg displayStyle ToolStripItemDisplayStyle.ImageAndText
*)
-> ToolStripItem
override CreateButton :
name : string *
text : string *
toolTipText : string *
image : Image *
onClick : EventHandler *
?displayStyle : ToolStripItemDisplayStyle
(* Defaults:
let _displayStyle = defaultArg displayStyle ToolStripItemDisplayStyle.ImageAndText
*)
-> ToolStripItem
protected ToolStripItem CreateButton(
String name,
String text,
String toolTipText,
Image image,
EventHandler onClick,
ToolStripItemDisplayStyle displayStyle = ToolStripItemDisplayStyle.ImageAndText
)
function CreateButton(name, text, toolTipText, image, onClick, displayStyle);
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
ToolStripItemTool strip item
See Also