Extensions 2Add Edit Text Box Method
Adds a textbox for editing a double (numeric) value.
Definition
Namespace: DWSIM.ExtensionMethods.Eto
Assembly: DWSIM.ExtensionMethods.Eto (in DWSIM.ExtensionMethods.Eto.dll) Version: 10.0.0.0
Assembly: DWSIM.ExtensionMethods.Eto (in DWSIM.ExtensionMethods.Eto.dll) Version: 10.0.0.0
C#
public static TextBox AddEditTextBox(
DynamicLayout container,
string text,
double currentvalue,
string numberformat = "",
Action<TextBox, EventArgs> textchangedhandler = null
)VB
Public Shared Function AddEditTextBox (
container As DynamicLayout,
text As String,
currentvalue As Double,
Optional numberformat As String = "",
Optional textchangedhandler As Action(Of TextBox, EventArgs) = Nothing
) As TextBoxParameters
- container DynamicLayout
- Layout container
- text String
- Text (description)
- currentvalue Double
- Current value to display on the textbox
- numberformat String (Optional)
- Number format (i.e. 'N2')
- textchangedhandler ActionTextBox, EventArgs (Optional)
- Handler for the TextChanged event.