[]
        
(Showing Draft Content)

C1.Win.Input.Base.ITextBoxBase

ITextBoxBase Interface

Represents the methods and properties of TextBoxBase class.

Namespace: C1.Win.Input.Base
Assembly: C1.Win.Input.8.dll
Syntax
public interface ITextBoxBase

Properties

Name Description
AcceptsTab

Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.

BorderStyle

Gets or sets the border type of the text box control.

CanUndo

Gets a value indicating whether the user can undo the previous operation in a text box control.

HideSelection

Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the control loses focus.

Lines

Gets or sets the lines of text in a text box control.

MaxLength

Gets or sets the maximum number of characters the user can type or paste into the text box control.

Modified

Gets or sets a value that indicates that the text box control has been modified by the user since the control was created or its contents were last set.

Multiline

Gets or sets a value indicating whether this is a multiline text box control.

PreferredHeight

Gets the preferred height for a text box.

ReadOnly

Gets or sets a value indicating whether text in the text box is read-only.

SelectedText

Gets or sets a value indicating the currently selected text in the control.

SelectionLength

Gets or sets the number of characters selected in the text box.

SelectionStart

Gets or sets the starting point of text selected in the text box.

ShortcutsEnabled

Gets or sets a value indicating whether the defined shortcuts are enabled.

Text

Gets or sets the current text in the text box.

TextLength

Gets the length of text in the control.

WordWrap

Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.

Methods

Name Description
AppendText(string)

Appends text to the current text of a text box.

Clear()

Clears all text from the text box control.

ClearUndo()

Clears information about the most recent operation from the undo buffer of the text box.

Copy()

Copies the current selection in the text box to the Clipboard.

Cut()

Moves the current selection in the text box to the Clipboard.

DeselectAll()

Specifies that the value of the SelectionLength property is zero so that no characters are selected in the control.

GetCharFromPosition(Point)

Retrieves the character that is closest to the specified location within the control.

GetCharIndexFromPosition(Point)

Retrieves the index of the character nearest to the specified location.

GetFirstCharIndexFromLine(int)

Retrieves the index of the first character of a given line.

GetFirstCharIndexOfCurrentLine()

Retrieves the index of the first character of the current line.

GetLineFromCharIndex(int)

Retrieves the line number from the specified character position within the text of the control.

GetPositionFromCharIndex(int)

Retrieves the location within the control at the specified character index.

Paste()

Replaces the current selection in the text box with the contents of the Clipboard.

ScrollToCaret()

Scrolls the contents of the control to the current caret position.

Select(int, int)

Selects a range of text in the text box.

SelectAll()

Selects all text in the text box.

Undo()

Undoes the last edit operation in the text box.

Events

Name Description
AcceptsTabChanged

Occurs when the value of the AcceptsTab property has changed.

Click

Occurs when the text box is clicked.

HideSelectionChanged

Occurs when the value of the HideSelection property has changed.

ModifiedChanged

Occurs when the value of the Modified property has changed.

MultilineChanged

Occurs when the value of the Multiline property has changed.

ReadOnlyChanged

Occurs when the value of the ReadOnly property has changed.