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標籤會隨著文字大小而擴大,省略號不會出現。
Important
如果字型高於 且 Label 的AutoEllipsis高度true,你必須設AutoSize為 ,false才能繪製文字。