RichTextBlock.SelectedText 屬性

定義

取得選取文字的文字範圍。

public:
 property Platform::String ^ SelectedText { Platform::String ^ get(); };
winrt::hstring SelectedText();
public string SelectedText { get; }
var string = richTextBlock.selectedText;
Public ReadOnly Property SelectedText As String

屬性值

String

Platform::String

winrt::hstring

選取文字的文字範圍。

適用於