Share via


ContentPresenter.MaxLines 屬性

定義

取得或設定顯示的最大文字行。

public:
 property int MaxLines { int get(); void set(int value); };
int MaxLines();

void MaxLines(int value);
public int MaxLines { get; set; }
var int32 = contentPresenter.maxLines;
contentPresenter.maxLines = int32;
Public Property MaxLines As Integer

屬性值

Int32

int

顯示的最大文字行。 默認值為 0,這是代表「自動」行為的特殊值。 值不能為負。

適用於