C# 클래스 WinRTXamlToolkit.Controls.Extensions.RichTextBlockExtensions

Attached properties and extension methods for RichTextBlock class.
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit

공개 프로퍼티들

프로퍼티 타입 설명
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