RichTextBox Properties
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The RichTextBox type exposes the following members.
| Name | Description | |
|---|---|---|
|
AcceptsReturn | Gets or sets a value that determines whether the RichTextBox allows and displays the newline or return characters when the ENTER or RETURN keys are pressed. |
|
ActualHeight | Gets the rendered height of a FrameworkElement. (Inherited from FrameworkElement.) |
|
ActualWidth | Gets the rendered width of a FrameworkElement. (Inherited from FrameworkElement.) |
|
AllowDrop | Gets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations. (Inherited from UIElement.) |
|
Background | (Inherited from Control.) |
|
BaselineOffset | Gets a value that represents the offset in logical pixels from the top of the content to the baseline of the first paragraph. The baseline of the paragraph is the baseline of the first line in it. |
|
Blocks | Gets the contents of the RichTextBox. |
|
BorderBrush | (Inherited from Control.) |
|
BorderThickness | (Inherited from Control.) |
|
CacheMode | Gets or sets a value that indicates that rendered content should be cached when possible. (Inherited from UIElement.) |
|
CaretBrush | Gets or sets the brush that is used to render the vertical bar that indicates the insertion point. |
|
CharacterSpacing | (Inherited from Control.) |
|
Clip | Gets or sets the Geometry used to define the outline of the contents of a UIElement. (Inherited from UIElement.) |
|
ContentEnd | Gets a TextPointer that indicates the end of content in the RichTextBox. |
|
ContentStart | Gets a TextPointer that indicates the start of content in the RichTextBox. |
|
Cursor | Infrastructure. Gets or sets the cursor image that displays while the pointer is over a FrameworkElement. (Inherited from FrameworkElement.) |
|
DataContext | Gets or sets the data context for a FrameworkElement when it participates in data binding. (Inherited from FrameworkElement.) |
|
DefaultStyleKey | (Inherited from Control.) |
|
DesiredSize | Gets the size that this UIElement computed during the measure pass of the layout process. (Inherited from UIElement.) |
|
Dispatcher | Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.) |
|
FlowDirection | Gets or sets the direction that text and other user interface elements flow within any parent element that controls their layout. (Inherited from FrameworkElement.) |
|
FontFamily | (Inherited from Control.) |
|
FontSize | (Inherited from Control.) |
|
FontStretch | (Inherited from Control.) |
|
FontStyle | (Inherited from Control.) |
|
FontWeight | (Inherited from Control.) |
|
Foreground | (Inherited from Control.) |
|
Height | Gets or sets the suggested height of a FrameworkElement. (Inherited from FrameworkElement.) |
|
HorizontalAlignment | Gets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control. (Inherited from FrameworkElement.) |
|
HorizontalContentAlignment | (Inherited from Control.) |
|
HorizontalScrollBarVisibility | Gets or sets the visibility of the horizontal scroll bar. |
|
IsEnabled | (Inherited from Control.) |
|
IsHitTestVisible | Gets or sets whether the contained area of this UIElement can return true values for hit testing. (Inherited from UIElement.) |
|
IsReadOnly | Gets or sets a value that determines whether the user can change the text in the RichTextBox. |
|
IsTabStop | (Inherited from Control.) |
|
Language | Gets or sets localization/globalization language information that applies to a FrameworkElement. (Inherited from FrameworkElement.) |
|
LineHeight | Gets or sets the height of each line of content. |
|
LineStackingStrategy | Gets or sets a value that indicates how a line box is determined for each line of text in the RichTextBox. |
|
Margin | Gets or sets the outer margin of a FrameworkElement. (Inherited from FrameworkElement.) |
|
MaxHeight | Gets or sets the maximum height constraint of a FrameworkElement. (Inherited from FrameworkElement.) |
|
MaxWidth | Gets or sets the maximum width constraint of a FrameworkElement. (Inherited from FrameworkElement.) |
|
MinHeight | Gets or sets the minimum height constraint of a FrameworkElement. (Inherited from FrameworkElement.) |
|
MinWidth | Gets or sets the minimum width constraint of a FrameworkElement. (Inherited from FrameworkElement.) |
|
Name | Gets or sets the identifying name of the object. When a XAML processor creates the object tree from XAML markup, run-time code can refer to the XAML-declared object by this name. (Inherited from FrameworkElement.) |
|
Opacity | Gets or sets the degree of the object's opacity. (Inherited from UIElement.) |
|
OpacityMask | Gets or sets the brush used to alter the opacity of regions of this object. (Inherited from UIElement.) |
|
Padding | (Inherited from Control.) |
|
Parent | Gets the parent object of this FrameworkElement in the object tree. (Inherited from FrameworkElement.) |
|
Projection | Gets or sets the perspective projection (3-D effect) to apply when rendering this UIElement. (Inherited from UIElement.) |
|
RenderSize | Gets the final render size of a UIElement. (Inherited from UIElement.) |
|
RenderTransform | Gets or sets transform information that affects the rendering position of a UIElement. (Inherited from UIElement.) |
|
RenderTransformOrigin | Gets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement. (Inherited from UIElement.) |
|
Resources | Gets the locally defined resource dictionary. In XAML, you can establish resource items as child object elements of a frameworkElement.Resources property element, through XAML implicit collection syntax. (Inherited from FrameworkElement.) |
|
Selection | Gets the TextSelection in the RichTextBox. |
|
Style | Gets or sets an instance Style that is applied for this object during rendering. (Inherited from FrameworkElement.) |
|
TabIndex | (Inherited from Control.) |
|
TabNavigation | (Inherited from Control.) |
|
Tag | Gets or sets an arbitrary object value that can be used to store custom information about this object. (Inherited from FrameworkElement.) |
|
Template | (Inherited from Control.) |
|
TextAlignment | Gets or sets how the text should be aligned in the RichTextBox. |
|
TextWrapping | Gets or sets how text wrapping occurs if a line of text extends beyond the available width of the RichTextBox. |
|
Triggers | Gets the collection of triggers for animations that are defined for a FrameworkElement. (Inherited from FrameworkElement.) |
|
UseLayoutRounding | Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels. (Inherited from UIElement.) |
|
UseOptimizedManipulationRouting | Gets or sets a value that indicates whether the system should handle input events or whether the FrameworkElement should handle input events. (Inherited from FrameworkElement.) |
|
VerticalAlignment | Gets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control. (Inherited from FrameworkElement.) |
|
VerticalContentAlignment | (Inherited from Control.) |
|
VerticalScrollBarVisibility | Gets or sets the visibility of the vertical scroll bar. |
|
Visibility | Gets or sets the visibility of a UIElement. A UIElement that is not visible does not render and does not communicate its desired size to layout. (Inherited from UIElement.) |
|
Width | Gets or sets the width of a FrameworkElement. (Inherited from FrameworkElement.) |
|
Xaml | Gets or sets a XAML representation of the content in the RichTextBox. |
Show: