Skip to content

FormattedTextPresenter class

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.FormattedTextPresenter Modifiers: public

Summary

        A control that displays formatted text using Inlines.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class FormattedTextPresenter
class TextBlock
TextBlock <|-- FormattedTextPresenter

Inherits from: TextBlock

Constructors

NameSummary
.ctorInitializes a new instance of the [FormattedTextPresenter](# class.

Properties

NameSummary
IsRemoteImageLoadingEnabledGets or sets a value indicating whether HTTP/HTTPS image sources may be resolved by [RemoteImageLoader](#
RemoteImageLoaderGets or sets the opt-in remote image loader used for HTTP/HTTPS image sources.
DocumentGets or sets the document to display.
DefaultForegroundGets or sets the default foreground brush.
DefaultFontSizeGets or sets the default font size.

Fields

NameSummary
static DocumentPropertyProperty for [Document](#
static DefaultForegroundPropertyProperty for [DefaultForeground](#
static DefaultFontSizePropertyProperty for [DefaultFontSize](#

Methods

NameSummary
UpdateInlinesUpdates the inline collection from the document.
OnPropertyChangedCalled when a avalonia property changes on the object.
Inherited members