Share via


RichTextBlock.IsTextSelectionEnabled 属性

定义

获取或设置一个值,该值确定是否可以选择 RichTextBlock 的文本内容用于剪贴板或拖动目的,或者用于指示所选文本的 UI 样式更改。

public:
 property bool IsTextSelectionEnabled { bool get(); void set(bool value); };
bool IsTextSelectionEnabled();

void IsTextSelectionEnabled(bool value);
public bool IsTextSelectionEnabled { get; set; }
var boolean = richTextBlock.isTextSelectionEnabled;
richTextBlock.isTextSelectionEnabled = boolean;
Public Property IsTextSelectionEnabled As Boolean
<RichTextBlock IsTextSelectionEnabled="bool" />

属性值

Boolean

bool

如果可以为剪贴板或拖动目的选择 RichTextBlock 的文本内容,则为 true。 如果无法选择文本,则为 false。 默认值为 true

适用于