TextBoxExtensions
Wisej.Web.Markup.TextBoxExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.TextBoxExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds extension methods to the class.
Sets whether the specified control accepts the Return key.
TTextBox
textBox
The text box for which to set the AcceptsReturn property.
value
A boolean value indicating whether the Return key is accepted.
Returns: . The modified text box with the updated AcceptsReturn property.
This method allows you to configure the text box to accept or ignore the Return key.
TTextBox
textBox
The text box for which to set the AcceptsTab property.
acceptTab
A boolean value indicating whether the Tab key is accepted.
TTextBox
tagTextBox
The tag text box for which to set the AllowDuplicateTags property.
value
A boolean value indicating whether duplicate tags are allowed.
This method allows you to specify whether the text box can accept duplicate tag entries.
TTextBox
textBox
The text box for which to set the auto-complete behavior.
autoComplete
The auto-complete behavior to set.
TTextBox
textBox
The text box for which to set the auto-complete list.
list
An array of strings representing the auto-complete options.
TTextBox
textBox
The text box for which to set the border style.
borderStyle
The border style to set.
TTextBox
textBox
The text box for which to set the character casing.
characterCasing
This method allows you to control the character casing for the text entered into the text box.
TTextBox
textBox
The text box for which to set the checked state.
value
A boolean value indicating the checked state of the text box.
This method allows you to set the checked state for a text box control that supports a checked property.
TTextBox
typedTextBox
The typed text box to attach the culture information to.
cultureInfo
This method allows you to set the culture information, which can affect how numbers, dates, and other data types are displayed or parsed in the typed text box.
TTextBox
typedTextBox
The typed text box for which to set the custom format.
customFormat
The custom format string to apply to the value in the text box.
This method allows you to define a custom format string for displaying the value within the typed text box.
TTextBox
textBox
The text box for which to set the filter string.
filter
The filter string to apply to the text box.
This extension method allows you to apply a filter to the text box content, possibly for validation or searching purposes.
TTextBox
textBox
value
The input type to be set.
TTextBox
textBox
The text box for which to set the invalid status.
invalid
A boolean value indicating whether the text box is invalid.
TTextBox
textBox
The text box for which to set the invalid message.
message
The invalid message to display.
TTextBox
typedTextBox
The typed text box for which to set the KeepFormatOnEnter property.
value
A boolean value indicating whether the formatting should be retained on enter.
This method allows you to specify whether the formatting of the value should be retained when the text box is entered.
TTextBox
tagTextBox
The tag text box for which to set the KeepWatermark property.
value
A boolean value indicating whether the watermark should remain visible when the text box loses focus.
This method allows you to specify whether the watermark text should persist when the text box loses focus.
TTextBox
textBox
The text box for which to set the lines of text.
lines
The lines of text to set.
Sets the maximum value for the input element.
TInputType
inputType
The input element to set the maximum value for.
value
The maximum value as a string.
TTextBox
textBox
The text box for which to set the maximum length.
length
The maximum number of characters.
TTextBox
tagTextBox
The tag text box for which to set the maximum tag count.
count
The maximum number of tags allowed.
This method allows you to specify the maximum number of tags that can be added to the tag text box. If more tags are added than the specified count, they may be ignored or removed.
TTextBox
tagTextBox
The tag text box for which to set the maximum tag width.
width
The maximum width of each tag in pixels.
This method allows you to limit the width of each tag within the tag text box. Tags exceeding the specified width may be truncated or otherwise adjusted.
Sets the minimum value for the input element.
TInputType
inputType
The input element to set the minimum value for.
value
The minimum value as a string.
Sets the mode of the input element.
TInputType
inputType
The input element to set the mode for.
value
TTextBox
textBox
The text box for which to set the Multiline property.
multiLine
A boolean value indicating whether to enable multiline text input. Default is false
.
This method allows you to specify whether the text box can accept multiple lines of text.
TTextBox
textBox
The text box to attach the event handler to.
action
An action to execute when the AcceptsTab property changes.
This extension method allows you to easily attach an action to execute when the AcceptsTab property of the text box changes.
TTextBox
textBox
The text box to attach the event handler to.
action
An action to execute when the checked state changes.
This method allows you to add an event handler for the CheckedChanged event, which occurs when the checked state changes.
TTextBox
typedTextBox
The typed text box to attach the event handler to.
action
An action to execute when the Culture property changes.
This method allows you to execute a custom action whenever the Culture property of the typed text box changes.
TTextBox
typedTextBox
The typed text box to attach the event handler to.
action
An action to execute when the CustomFormat property changes.
This method allows you to execute a custom action whenever the CustomFormat property of the typed text box changes.
TTextBox
typedTextBox
The typed text box to attach the event handler to.
action
An action to execute during the Format event, with the text box and event arguments as parameters.
This method allows you to define custom formatting logic by executing a specified action during the Format event.
TTextBox
textBox
The text box to attach the event handler to.
action
An action to execute when the Multiline property changes.
This extension method allows you to easily attach an action to execute when the Multiline property of the text box changes.
TTextBox
typedTextBox
The typed text box to attach the event handler to.
action
An action to execute during the Parse event, with the text box and event arguments as parameters.
This method allows you to define custom parsing logic by executing a specified action during the Parse event.
TTextBox
tagTextBox
The tag text box to attach the event handler to.
action
An action to execute when the SeparatorChar property changes.
This method allows you to add custom behavior when the SeparatorChar property of the tag text box changes.
TTextBox
tagTextBox
The tag text box to attach the event handler to.
action
An action to execute when a tag is added.
This method allows you to execute a custom action when a new tag is added to the tag text box.
TTextBox
tagTextBox
The tag text box to attach the event handler to.
action
An action to execute when a tag is clicked.
This method allows you to add an event handler for the TagClick event, executing a custom action when a tag is clicked.
TTextBox
tagTextBox
The tag text box to attach the event handler to.
action
An action to execute when a tag is double-clicked.
This method allows you to add an event handler for the TagDoubleClick event, allowing you to define custom behavior when a tag is double-clicked.
TTextBox
tagTextBox
The tag text box to attach the event handler to.
action
An action to execute when a tag is rejected.
This method allows you to add an event handler for the TagRejected event, which occurs when a tag is not accepted for some reason.
TTextBox
tagTextBox
The tag text box to attach the event handler to.
action
An action to execute when a tag is removed.
This extension method allows you to provide an action that will be executed when a tag is removed from the tag text box.
TTextBox
tagTextBox
The tag text box to attach the event handler to.
action
An action to execute when a tag is rendered.
This method allows you to define a custom action for rendering tags within the tag text box.
TTextBox
tagTextBox
The tag text box to attach the event handler to.
action
An action to execute when a tag is selected.
This method allows you to execute a custom action when a tag is selected within the tag text box.
TTextBox
textBox
The text box to attach the event handler to.
action
An action to execute when the text alignment changes.
This method is used to add an event handler for the TextAlignChanged event, which occurs when the alignment of the text changes.
TTextBox
textBox
The text box to attach the event handler to.
action
An action to execute when a tool is clicked.
This method is used to add an event handler for the ToolClick event, which occurs when a tool button is clicked.
TTextBox
typedTextBox
The typed text box to attach the event handler to.
action
An action to execute when the Value property changes.
This method allows you to execute a custom action whenever the Value property of the typed text box changes.
TTextBox
typedTextBox
The typed text box to attach the event handler to.
action
An action to execute when the ValueType property changes.
This method enables the execution of a custom action whenever the ValueType property of the typed text box changes.
TTextBox
textBox
The text box for which to set the password character.
passwordChar
The character to display for password input.
This method allows you to specify a character to display in place of the actual characters typed for password input.
TTextBox
textBox
The text box for which to set the scroll bars.
scrollBars
This method allows you to configure the scroll bars for the text box.
TTextBox
textBox
The text box for which to set the selectable status.
selectable
A boolean value indicating whether the text box is selectable.
TTextBox
textBox
The text box for which to set the selected text.
text
The text to select.
TTextBox
textBox
The text box for which to set the selection length.
length
The length of the selection.
TTextBox
textBox
The text box for which to set the selection start.
index
The zero-based index of the selection start.
TTextBox
textBox
The text box for which to set the SelectOnEnter property.
selectOnEnter
A boolean value indicating whether the text should be selected on enter.
TTextBox
tagTextBox
The tag text box for which to set the separator character.
separator
The character to use as a separator between tags.
This method allows you to customize the character that separates tags within the text box.
TTextBox
tagTextBox
The tag text box for which to set the tooltips visibility.
value
A boolean value indicating whether tooltips should be shown for tags.
This extension method allows you to enable or disable the display of tooltips for tags within the text box. Tooltips can provide additional information about each tag.
TTextBox
textBox
value
A boolean value indicating whether spell checking should be enabled or disabled.
Sets the step value for the input element.
TInputType
inputType
The input element to set the step value for.
value
The step value as a nullable double. If null, the step attribute will be removed.
TTextBox
textBox
The text box for which to set the text alignment.
textAlign
This method allows you to set the horizontal alignment of text within the text box.
TTextBox
textBox
The text box to which the tool bar buttons will be added.
toolBarButtons
Sets the type of the input element.
TInputType
inputType
The input element to set the type for.
value
TTextBox
typedTextBox
The typed text box for which to set the value.
value
The value to be set in the typed text box.
This method allows you to set a value into the typed text box, which will be converted to a string representation according to the text box's ValueType and Culture settings.
TTextBox
textBox
The text box for which to set the watermark text.
watermark
The watermark text to display.
TTextBox
textBox
The text box for which to set the word wrap status.
wrap
A boolean value indicating whether the text should wrap.
The type of the text box, must inherit from .
Sets whether the specified control accepts the Tab key.
The type of the text box, must inherit from .
Returns: . The modified text box with the updated AcceptsTab property.
Sets whether duplicate tags are allowed in the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the updated AllowDuplicateTags property.
Sets the auto-complete behavior for the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated auto-complete behavior.
Sets the list of auto-complete options for the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated auto-complete list.
Sets the border style of the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated border style.
Sets the character casing for the specified .
The type of the text box, must inherit from .
The value to set.
Returns: . The modified text box with the updated character casing.
Sets the checked state of the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated checked state.
Sets the culture information to use for displaying and interpreting the value in the specified .
The type of the typed text box, must inherit from .
The to use for formatting and parsing the value in the text box.
Returns: . The modified typed text box with the updated culture information.
Sets a custom format string for the specified .
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the updated custom format.
Sets a filter string for the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the applied filter string.
Sets the input type for the specified .
The type of the .
The instance to set the input type for.
Returns: . The instance with the updated input type.
This method allows you to specify the input type for a control, which can be useful for customizing the behavior of the text input.
Sets the invalid status of the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated invalid status.
Sets the invalid message for the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated invalid message.
Sets whether the format of the specified should be retained when the text box is entered.
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the updated KeepFormatOnEnter property.
Sets whether the watermark text should remain visible when the specified loses focus.
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the updated KeepWatermark property.
Sets the lines of text in the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated lines of text.
The type of the input element, which must inherit from .
Returns: . The modified input element with the specified maximum value.
Sets the maximum number of characters that can be entered into the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated maximum length.
Sets the maximum number of tags that can be added to the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the updated maximum tag count.
Sets the maximum width for each tag in the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the updated maximum tag width.
The type of the input element, which must inherit from .
Returns: . The modified input element with the specified minimum value.
The type of the input element, which must inherit from .
The value to set as the mode.
Returns: . The modified input element with the specified mode.
Sets the Multiline property for the specified , enabling or disabling multiline text input.
The type of the text box, which must inherit from .
Returns: . The text box with the updated Multiline property.
Adds an event handler for the AcceptsTabChanged event of the specified .
The type of the text box, must inherit from .
Returns: . The text box with the attached event handler.
Sets a checked state change event handler for the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the attached CheckedChanged event handler.
Attaches an event handler for the CultureChanged event of the specified .
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the attached CultureChanged event handler.
Attaches an event handler for the CustomFormatChanged event of the specified .
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the attached CustomFormatChanged event handler.
Attaches an event handler for the Format event of the specified .
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the attached Format event handler.
Adds an event handler for the MultilineChanged event of the specified .
The type of the text box, must inherit from .
Returns: . The text box with the attached event handler.
Attaches an event handler for the Parse event of the specified .
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the attached Parse event handler.
Attaches an event handler for the SeparatorCharChanged event of the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the attached SeparatorCharChanged event handler.
Attaches an event handler for the TagAdded event of the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the attached TagAdded event handler.
Attaches an event handler for the TagClick event of the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the attached TagClick event handler.
Attaches an event handler for the TagDoubleClick event of the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the attached TagDoubleClick event handler.
Attaches an event handler for the TagRejected event of the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the attached TagRejected event handler.
Adds an event handler for the TagRemoved event of the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the attached TagRemoved event handler.
Attaches an event handler for the TagRender event of the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the attached TagRender event handler.
Attaches an event handler for the TagSelected event of the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the attached TagSelected event handler.
Attaches an event handler to the TextAlignChanged event of the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the attached TextAlignChanged event handler.
Attaches an event handler to the ToolClick event of the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the attached ToolClick event handler.
Attaches an event handler for the ValueChanged event of the specified .
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the attached ValueChanged event handler.
Attaches an event handler for the ValueTypeChanged event of the specified .
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the attached ValueTypeChanged event handler.
Sets the password character for the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated password character.
Sets the scroll bars for the specified .
The type of the text box, must inherit from .
The value to set.
Returns: . The modified text box with the updated scroll bars.
Sets the selectable status of the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated selectable status.
Sets the selected text in the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated selected text.
Sets the length of the selected text in the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated selection length.
Sets the starting position of the text selection in the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated selection start.
Sets whether the entire text is selected when the specified is entered.
The type of the text box, must inherit from .
Returns: . The modified text box with the updated SelectOnEnter property.
Sets the character used to separate tags in the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the updated separator character.
Sets whether tooltips are shown for tags in the specified .
The type of the tag text box, must inherit from .
Returns: . The modified tag text box with the updated tooltip visibility setting.
Enables or disables spell checking for the specified .
The type of the .
The instance to set spell checking for.
Returns: . The instance with the updated spell check setting.
This method allows you to enable or disable spell checking for a control, which can be useful for providing feedback on text input.
The type of the input element, which must inherit from .
Returns: . The modified input element with the specified step value.
Sets the horizontal text alignment for the specified .
The type of the text box, must inherit from .
The value to set.
Returns: . The modified text box with the updated text alignment.
Adds a collection of tool bar buttons to the specified .
The type of the text box, must inherit from .
An array of representing the tool bar buttons to add.
Returns: . The modified text box with the added tool bar buttons.
The type of the input element, which must inherit from .
The value to set as the type.
Returns: . The modified input element with the specified type.
Sets the value of the specified .
The type of the typed text box, must inherit from .
Returns: . The modified typed text box with the updated value.
Sets the watermark text for the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated watermark text.
Sets the word wrap status of the specified .
The type of the text box, must inherit from .
Returns: . The modified text box with the updated word wrap status.