語言

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 的文字。 若 AutoSize , true標籤會隨著文字大小而擴大,省略號不會出現。

Important

如果字型高於 且 Label 的AutoEllipsis高度true,你必須設AutoSize為 ,false才能繪製文字。

適用於

另請參閱