IXRTextBox (Windows Embedded CE 6.0)
1/6/2010
This class represents a control that can be used to display single-format, multiline text.
Syntax
class IXRTextBox : public IXRControl
Methods
Method | Description |
---|---|
Attaches a delegate to the SelectionChanged event for this text box. When the SelectionChanged event is raised by this text box, this delegate will be invoked. |
|
Attaches a delegate to the TextChanged event for this text box. When the TextChanged event is raised by this text box, this delegate is invoked. |
|
Retrieves a value that determines whether this text box allows for and displays the new-line character or return character. These characters are used to divide text into multiple lines. |
|
Retrieves the visibility of the horizontal scroll bar. |
|
Retrieves a value that determines whether the user can change the text in this text box. |
|
Retrieves the value that determines the maximum number of characters allowed for user input. |
|
Retrieves the content of the current selection in this text box. |
|
Retrieves the Brush that fills the background of the selected text in this text box. |
|
Retrieves the Brush used for the selected text in this text box. |
|
Retrieves the starting position of the text selected in this text box. |
|
Retrieves the number of characters in the current selection in this text box. |
|
Retrieves the text contents of this text box. |
|
Retrieves a value that indicates the horizontal alignment of text inside this text box. |
|
Retrieves how line breaking occurs if a line of text extends beyond the available width of this text box. |
|
Retrieves the visibility of the vertical scroll bar. |
|
Removes a delegate from the SelectionChanged event for this text-box control. |
|
Removes a delegate from the TextChanged event for this text-box control. |
|
Selects a range of text in this text box. |
|
Selects all the contents of this text box. |
|
Sets a value that determines whether this text box allows for and displays the new-line character or return character. These characters are used to divide text into multiple lines. |
|
Sets the visibility of the horizontal scroll bar. |
|
Retrieves a value that determines whether the user can change the text in this text box. |
|
Sets the value that determines the maximum number of characters allowed for user input. |
|
Sets the content of the current selection in this text box. |
|
Sets the Brush that fills the background of the selected text in this text box. |
|
Sets the Brush used for the selected text in this text box. |
|
Sets the number of characters in the current selection in this text box. |
|
Sets the starting position of the text selected in this text box. |
|
Sets the text contents of this text box. |
|
Sets a value that indicates the horizontal alignment of text inside this text box. |
|
Sets how line breaking occurs if a line of text extends beyond the available width of this text box. |
|
Sets the visibility of the vertical scroll bar. |
Remarks
You can enable multiline text in a text-box control by using IXRTextBox::SetAcceptsReturn.
You might want to use a text box to display text. However, you might not want users to be able to edit its text. To prevent users from editing its text, you can call IXRTextBox::SetIsReadOnly. If you pass in true to this method, edit commands will not be supported, and the KeyUp and KeyDown events are specified as handled. If you must have formatted text that cannot be edited by the user, use the IXRTextBlock class instead. If you must have an editable text box that accepts passwords or other input, use the IXRPasswordBox class instead.
You can modify the border of a text box by using the inherited methods IXRControl::SetBorderThickness and IXRControl::SetBorderBrush.
You can also define a text-box control in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.
Inheritance Hierarchy
IXRTextBox
.NET Framework Equivalent
System.Windows.Controls.TextBox
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |