Click or drag to resize

PdfToolBarCreateToggleButton Method

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

Namespace: Patagames.Pdf.Net.Controls.Wpf.ToolBars
Assembly: Patagames.Pdf.Wpf (in Patagames.Pdf.Wpf.dll) Version: 4.94.2704
Syntax
protected virtual ToggleButton CreateToggleButton(
	string name,
	string text,
	string toolTipText,
	string imgResName,
	RoutedEventHandler onClick,
	int imgWidth = 32,
	int imgHeight = 32,
	PdfToolBarImageTextType imageTextType = PdfToolBarImageTextType.ImageBeforeText
)

Parameters

name  String
The name of the ToggleButton.
text  String
The text to display on the ToggleButton.
toolTipText  String
Specify the text that appears as a ToolTip for a control.
imgResName  String
The image name in resources to display on the ToggleButton.
onClick  RoutedEventHandler
An event handler that raises the Click event.
imgWidth  Int32  (Optional)
Image width
imgHeight  Int32  (Optional)
Image height
imageTextType  PdfToolBarImageTextType  (Optional)
Image and text layout

Return Value

ToggleButton
Newly created ToggleButton
See Also