Label.AutoEllipsis 屬性

定義

取得或設定值,指出省略字元 (...) 是否會顯示在 Label 的右邊緣,表示 Label 文字超過 Label 的指定長度。

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 的文字。 如果 AutoSizetrue ,則標籤會成長以符合文字,而且不會顯示省略號。

重要

如果字型比 Label 的高度高,且 AutoEllipsistrue ,您必須將 設定 AutoSizefalse ,才能繪製文字。

適用於

另請參閱