C# 클래스 Patagames.Pdf.Net.Controls.Wpf.ToolBars.PdfToolBar

Represents the base functionality for all PdfToolBars
상속: System.Windows.Controls.ToolBar
파일 보기 프로젝트 열기: Patagames/Pdf.Wpf

공개 프로퍼티들

프로퍼티 타입 설명
PdfViewerProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
PdfToolBar ( ) : System

Initialize the new instance of PdfToolBar class

보호된 메소드들

메소드 설명
CreateButton ( string name, string text, string toolTipText, Uri imgRes, RoutedEventHandler onClick, int imgWidth = 32, int imgHeight = 32, ImageTextType imageTextType = ImageTextType.ImageBeforeText ) : System.Windows.Controls.Button

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

CreateToggleButton ( string name, string text, string toolTipText, string imgResName, RoutedEventHandler onClick, int imgWidth = 32, int imgHeight = 32, ImageTextType imageTextType = ImageTextType.ImageBeforeText ) : System.Windows.Controls.Primitives.ToggleButton

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

CreateUriToResource ( string resName ) : Uri

Create the Uri to the resource with the specified name.

InitializeButtons ( ) : void

Create all buttons and add its into toolbar. Override this method to create custom buttons

OnPdfViewerChanging ( PdfViewer oldValue, PdfViewer newValue ) : void

Called when the current PdfViewer control associated with the ToolBar is changing.

UpdateButtons ( ) : void

Called when the ToolBars's items need to change its states

메소드 상세

CreateButton() 보호된 메소드

Create a new instance of Button class with the specified name that displays the specified text and image and that raises the Click event.
protected CreateButton ( string name, string text, string toolTipText, Uri imgRes, RoutedEventHandler onClick, int imgWidth = 32, int imgHeight = 32, ImageTextType imageTextType = ImageTextType.ImageBeforeText ) : System.Windows.Controls.Button
name string The name of the Button.
text string The text to display on the Button.
toolTipText string Specify the text that appears as a ToolTip for a control.
imgRes System.Uri The image to display on the Button.
onClick RoutedEventHandler An event handler that raises the Click event.
imgWidth int Image width
imgHeight int Image height
imageTextType ImageTextType Image and text layout
리턴 System.Windows.Controls.Button

CreateToggleButton() 보호된 메소드

Create a new instance of ToggleButon class with the specified name that displays the specified text and image and that raises the Click event.
protected CreateToggleButton ( string name, string text, string toolTipText, string imgResName, RoutedEventHandler onClick, int imgWidth = 32, int imgHeight = 32, ImageTextType imageTextType = ImageTextType.ImageBeforeText ) : System.Windows.Controls.Primitives.ToggleButton
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 int Image width
imgHeight int Image height
imageTextType ImageTextType Image and text layout
리턴 System.Windows.Controls.Primitives.ToggleButton

CreateUriToResource() 보호된 메소드

Create the Uri to the resource with the specified name.
protected CreateUriToResource ( string resName ) : Uri
resName string Resource's name.
리턴 System.Uri

InitializeButtons() 보호된 메소드

Create all buttons and add its into toolbar. Override this method to create custom buttons
protected InitializeButtons ( ) : void
리턴 void

OnPdfViewerChanging() 보호된 메소드

Called when the current PdfViewer control associated with the ToolBar is changing.
protected OnPdfViewerChanging ( PdfViewer oldValue, PdfViewer newValue ) : void
oldValue PdfViewer PdfViewer control of which was associated with the ToolBar.
newValue PdfViewer PdfViewer control of which will be associated with the ToolBar.
리턴 void

PdfToolBar() 공개 메소드

Initialize the new instance of PdfToolBar class
public PdfToolBar ( ) : System
리턴 System

UpdateButtons() 보호된 메소드

Called when the ToolBars's items need to change its states
protected UpdateButtons ( ) : void
리턴 void

프로퍼티 상세

PdfViewerProperty 공개적으로 정적으로 프로퍼티

DependencyProperty as the backing store for PdfViewer
public static DependencyProperty,System.Windows PdfViewerProperty
리턴 System.Windows.DependencyProperty