[]
        
(Showing Draft Content)

C1.Framework.TextBoxElement

TextBoxElement Class

Element that hosts a TextBox control.

Inheritance
TextBoxElement
Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public class TextBoxElement : ControlHostElement, ISupportUia, IControlHostElement

Constructors

Name Description
TextBoxElement()

Initializes a new instance of the TextBoxElement class.

TextBoxElement(Style)

Initializes a new instance of the TextBoxElement class with specified style settings.

TextBoxElement(Style, string)

Initializes a new instance of the TextBoxElement class with specified text and style settings.

TextBoxElement(string)

Initializes a new instance of the TextBoxElement class with specified text.

Properties

Name Description
LineCount

Gets the number of lines in the text box control.

Text

Gets or sets the current text.

TextBox

Returns the reference to the hosted TextBox control.

Methods

Name Description
ApplyStyle()

Copies style attributes from the element to the hosted control.

ApplyTextBoxStyle()
CreateTextBoxControl()
GetVisibleTextRect()

Gets visible text bounds.

Layout(Graphics)

Lays out this element based on its style and contents.

OnTextChanged(EventArgs)

Override to get text change notifications.

UpdateAlignment()

Updates the alignment of the text box control to reflect the current Style.