C# Класс WinRTXamlToolkit.Controls.Extensions.RichTextBlockExtensions

Attached properties and extension methods for RichTextBlock class.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
LinkedHtmlFragmentProperty Windows.UI.Xaml.DependencyProperty
PlainTextProperty Windows.UI.Xaml.DependencyProperty

Открытые методы

Метод Описание
AppendLink ( this richTextBlock, string text, Uri uri ) : void

Appends a HyperlinkButton with the given text and navigate uri to the given RichTextBlock.

AppendText ( this richTextBlock, string text ) : void

Appends a paragraph of plain text to the RichTextBlock.

GetLinkedHtmlFragment ( DependencyObject d ) : string

Gets the LinkedHtmlFragment property. This dependency property indicates the linked text that can be bound to the RichTextBlock to automatically generate inline links.

Note that only simple html text with opening and closing anchor tags and href attribute with double-quotes is supported. No escapes or other tags will be parsed.

GetPlainText ( DependencyObject d ) : string

Gets the PlainText property. This dependency property indicates the plain text to assign to the RichTextBlock.

SetLinkedHtmlFragment ( DependencyObject d, string value ) : void

Sets the LinkedHtmlFragment property. This dependency property indicates the linked text that can be bound to the RichTextBlock to automatically generate inline links.

Note that only simple html text with opening and closing anchor tags and href attribute with double-quotes is supported. No escapes or other tags will be parsed.

SetLinkedHtmlFragmentString ( this richTextBlock, string htmlFragment ) : void

Sets the linked HTML fragment.

Note that only simple html text with opening and closing anchor tags and href attribute with double-quotes is supported. No escapes or other tags will be parsed.

SetPlainText ( DependencyObject d, string value ) : void

Sets the PlainText property. This dependency property indicates the plain text to assign to the RichTextBlock.

Приватные методы

Метод Описание
OnLinkedHtmlFragmentChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the LinkedHtmlFragment property.

OnPlainTextChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the PlainText property.

Описание методов

AppendLink() публичный статический Метод

Appends a HyperlinkButton with the given text and navigate uri to the given RichTextBlock.
public static AppendLink ( this richTextBlock, string text, Uri uri ) : void
richTextBlock this The rich text block.
text string The text.
uri System.Uri The URI.
Результат void

AppendText() публичный статический Метод

Appends a paragraph of plain text to the RichTextBlock.
public static AppendText ( this richTextBlock, string text ) : void
richTextBlock this The rich text block.
text string The text.
Результат void

GetLinkedHtmlFragment() публичный статический Метод

Gets the LinkedHtmlFragment property. This dependency property indicates the linked text that can be bound to the RichTextBlock to automatically generate inline links.
Note that only simple html text with opening and closing anchor tags and href attribute with double-quotes is supported. No escapes or other tags will be parsed.
public static GetLinkedHtmlFragment ( DependencyObject d ) : string
d Windows.UI.Xaml.DependencyObject
Результат string

GetPlainText() публичный статический Метод

Gets the PlainText property. This dependency property indicates the plain text to assign to the RichTextBlock.
public static GetPlainText ( DependencyObject d ) : string
d Windows.UI.Xaml.DependencyObject
Результат string

SetLinkedHtmlFragment() публичный статический Метод

Sets the LinkedHtmlFragment property. This dependency property indicates the linked text that can be bound to the RichTextBlock to automatically generate inline links.
Note that only simple html text with opening and closing anchor tags and href attribute with double-quotes is supported. No escapes or other tags will be parsed.
public static SetLinkedHtmlFragment ( DependencyObject d, string value ) : void
d Windows.UI.Xaml.DependencyObject
value string
Результат void

SetLinkedHtmlFragmentString() публичный статический Метод

Sets the linked HTML fragment.
Note that only simple html text with opening and closing anchor tags and href attribute with double-quotes is supported. No escapes or other tags will be parsed.
public static SetLinkedHtmlFragmentString ( this richTextBlock, string htmlFragment ) : void
richTextBlock this The rich text block.
htmlFragment string The HTML fragment.
Результат void

SetPlainText() публичный статический Метод

Sets the PlainText property. This dependency property indicates the plain text to assign to the RichTextBlock.
public static SetPlainText ( DependencyObject d, string value ) : void
d Windows.UI.Xaml.DependencyObject
value string
Результат void

Описание свойств

LinkedHtmlFragmentProperty публичное статическое свойство

LinkedHtmlFragment Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml LinkedHtmlFragmentProperty
Результат Windows.UI.Xaml.DependencyProperty

PlainTextProperty публичное статическое свойство

PlainText Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml PlainTextProperty
Результат Windows.UI.Xaml.DependencyProperty