Label.AutoEllipsis 屬性
定義
public:
property bool AutoEllipsis { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(true)]
public bool AutoEllipsis { get; set; }
member this.AutoEllipsis : bool with get, set
Public Property AutoEllipsis As Boolean
屬性值
如果要以省略符號表示還有其他標籤文字,則為 true
,否則為 false
。true
if the additional label text is to be indicated by an ellipsis; otherwise, false
. 預設為 false
。The default is false
.
- 屬性
備註
將 [AutoEllipsis] 設定為 [true
],會在使用者以滑鼠傳遞控制項時,顯示超出 Label 寬度的文字。Set AutoEllipsis to true
to display text that extends beyond the width of the Label when the user passes over the control with the mouse. 如果 true
AutoSize,標籤將會成長以符合文字,而且不會出現省略號。If AutoSize is true
, the label will grow to fit the text and an ellipsis will not appear.
重要
如果字型高於 Label 的高度,而且 AutoEllipsis 是 true
,您必須將 AutoSize 設定為 [false
以繪製文字]。If the font is taller than the height of the Label and AutoEllipsis is true
, you must set AutoSize to false
for text to be drawn.