Class RichTextBlock
Represents a control that displays read-only rich text.
Inheritance
System.Object
RichTextBlock
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public sealed class RichTextBlock : FrameworkElement
Constructors
|
Improve this Doc
View Source
RichTextBlock()
Declaration
Fields
|
Improve this Doc
View Source
FontFamilyProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty FontFamilyProperty
Field Value
|
Improve this Doc
View Source
FontSizeProperty
Identifies the FontSize dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty FontSizeProperty
Field Value
|
Improve this Doc
View Source
FontWeightProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty FontWeightProperty
Field Value
|
Improve this Doc
View Source
ForegroundProperty
Declaration
public static readonly DependencyProperty ForegroundProperty
Field Value
|
Improve this Doc
View Source
IsTextSelectionEnabledProperty
Declaration
public static readonly DependencyProperty IsTextSelectionEnabledProperty
Field Value
|
Improve this Doc
View Source
LineHeightProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty LineHeightProperty
Field Value
|
Improve this Doc
View Source
OverflowContentTargetProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty OverflowContentTargetProperty
Field Value
|
Improve this Doc
View Source
TextWrappingProperty
Declaration
[NotImplemented]
public static readonly DependencyProperty TextWrappingProperty
Field Value
Properties
|
Improve this Doc
View Source
Blocks
Declaration
[NotImplemented]
public BlockCollection Blocks { get; }
Property Value
|
Improve this Doc
View Source
FontFamily
Gets or sets the font used to display text in the control.
The default is the "Portable User Interface".
Declaration
[NotImplemented]
public FontFamily FontFamily { get; set; }
Property Value
|
Improve this Doc
View Source
FontSize
Gets or sets the size of the text in this control.
The default is 11 (in pixels).
Declaration
[NotImplemented]
public double FontSize { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
FontWeight
Gets or sets the thickness of the specified font.
The default is Normal.
Declaration
[NotImplemented]
public FontWeight FontWeight { get; set; }
Property Value
|
Improve this Doc
View Source
Foreground
Gets or sets a brush that describes the foreground color.
Declaration
[NotImplemented]
public Brush Foreground { get; set; }
Property Value
|
Improve this Doc
View Source
IsTextSelectionEnabled
Gets or sets a value that indicates whether text selection is enabled
in System.Windows.Controls.RichTextBlock.
Declaration
[NotImplemented]
public bool IsTextSelectionEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LineHeight
Gets or sets the height of each line of content.
Declaration
[NotImplemented]
public double LineHeight { get; set; }
Property Value
Type |
Description |
System.Double |
The height of each line in pixels. A value of 0 indicates that the line height
is determined automatically from the current font characteristics. The default
is 0.
|
|
Improve this Doc
View Source
OverflowContentTarget
Declaration
[NotImplemented]
public RichTextBlockOverflow OverflowContentTarget { get; set; }
Property Value
|
Improve this Doc
View Source
TextWrapping
Gets or sets how text wrapping occurs if a line of text extends beyond the available
width of the RichTextBlock.
The default is Wrap.
Declaration
[NotImplemented]
public TextWrapping TextWrapping { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
CreateDomChildWrapper(Object, out Object, Int32)
Declaration
public override object CreateDomChildWrapper(object parentRef, out object domElementWhereToPlaceChild, int index = -1)
Parameters
Type |
Name |
Description |
System.Object |
parentRef |
|
System.Object |
domElementWhereToPlaceChild |
|
System.Int32 |
index |
|
Returns
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
CreateDomElement(Object, out Object)
Declaration
public override object CreateDomElement(object parentRef, out object domElementWhereToPlaceChildren)
Parameters
Type |
Name |
Description |
System.Object |
parentRef |
|
System.Object |
domElementWhereToPlaceChildren |
|
Returns
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
INTERNAL_OnAttachedToVisualTree()
Declaration
protected override void INTERNAL_OnAttachedToVisualTree()
Overrides
Extension Methods