TextBlock.IsTextSelectionEnabled 屬性

定義

取得或設定值,這個值表示是否透過用戶動作或呼叫選取專案相關的 API,在 TextBlock 中啟用文字選取範圍。

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

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

屬性值

Boolean

bool

如果已啟用文字選取範圍,則為 true;否則為 false

備註

重要

如果使用鍵盤進行 TextBlock 內的文字選取,用戶必須先在前景中啟動插入 號流覽 (,然後按 F7) 。

適用於