This property sets or retrieves the "PenWidth" textbox of the ToolBarStandard control.
[Visual Basic]Public Property TextBoxPenWidth
As System.Windows.Controls.TextBox
[C#]public System.Windows.Controls.TextBox
TextBoxPenWidth {get; set;}
Property Value
A value of type System.Windows.Controls.TextBox
Explanation
The TextBoxPenWidth property sets or retrieves the "PenWidth" textbox of the ToolBarStandard. The "PenWidth" textbox is a TextBox control. By using the TextBoxPenWidth property, you can change "PenWidth" textbox settings, generate events, etc.
Please refer to the examples below.
Examples
Access the "PenWidth" testbox's Click event.
[Visual Basic.NET]
'Set the delegate for the TextBoxPenWidth Click event within the FormLoad event
AddHandler ToolBarStandard1.TextBoxPenWidth.Click, AddressOf Me.TextBoxPenWidth_Click
'Event handler delegate
Private Sub TextBoxPenWidth_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
'Place code here that executes when this event fires
End Sub
[Visual C#.NET]
//Set the delegate for the TextBoxPenWidth Click event within the FormLoad event
toolBarStandard1.TextBoxPenWidth.Click += new MouseEventHandler(TextBoxPenWidth_Click);
//Event handler delegate
private void TextBoxPenWidth_Click(object sender, RoutedEventArgs e)
{
//Place code here that executes when this event fires
}
'Set the delegate for the TextBoxPenWidth Click event within the FormLoad event
AddHandler ToolBarStandard1.TextBoxPenWidth.Click, AddressOf Me.TextBoxPenWidth_Click
'Event handler delegate
Private Sub TextBoxPenWidth_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
'Place code here that executes when this event fires
End Sub
[Visual C#.NET]
//Set the delegate for the TextBoxPenWidth Click event within the FormLoad event
toolBarStandard1.TextBoxPenWidth.Click += new MouseEventHandler(TextBoxPenWidth_Click);
//Event handler delegate
private void TextBoxPenWidth_Click(object sender, RoutedEventArgs e)
{
//Place code here that executes when this event fires
}
See Also
ToolBarStandard Members | Newtone.ImageKit.Wpf.ToolBarStandard