ButtonBase.AutoEllipsis 屬性

定義

取得或設定值,指出省略字元 (...) 是否會顯示在控制項的右邊緣,表示控制項文字超過控制項的指定長度。Gets or sets a value indicating whether the ellipsis character (...) appears at the right edge of the control, denoting that the control text extends beyond the specified length of the control.

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

屬性值

Boolean

如果要以省略符號表示還有其他標籤文字,則為 true,否則為 falsetrue if the additional label text is to be indicated by an ellipsis; otherwise, false. 預設為 trueThe default is true.

屬性

備註

AutoEllipsis true 當使用者使用滑鼠傳遞控制項時,將設為可顯示超出控制項寬度的文字。Set AutoEllipsis to true to display text that extends beyond the width of the control when the user passes over the control with the mouse. 如果您想要的話,您必須將控制項的 AutoSize 屬性設為 false AutoEllipsis trueYou must set the control's AutoSize property to false if you want AutoEllipsis to be true. 如果 AutoSizetrue ,控制項將會成長以符合文字,而且不會出現省略號。If AutoSize is true, the control will grow to fit the text and an ellipsis will not appear.

適用於