Label.AutoEllipsis 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public:
property bool AutoEllipsis { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(true)]
public bool AutoEllipsis { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.AutoEllipsis : bool with get, set
Public Property AutoEllipsis As Boolean
屬性值
如果要以省略符號表示還有其他標籤文字,則為 true
,否則為 false
。 預設為 false
。
- 屬性
備註
設定 AutoEllipsis 為 , true
當使用者使用滑鼠傳遞控制項時,顯示超出工具提示寬度 Label 的文字。 如果 AutoSize 為 true
,則標籤會成長以符合文字,而且不會顯示省略號。
重要
如果字型比 Label 的高度高,且 AutoEllipsis 為 true
,您必須將 設定 AutoSize 為 false
,才能繪製文字。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應