Share via


FlowLayoutSettings.WrapContents 屬性

定義

取得或設定值,指出當內容超出其容器的原始界限時,應該將內容包裝起來還是予以裁剪。

public:
 property bool WrapContents { bool get(); void set(bool value); };
public bool WrapContents { get; set; }
member this.WrapContents : bool with get, set
Public Property WrapContents As Boolean

屬性值

Boolean

如果應該將內容包裝起來,則為 true,否則為 false,表示應該裁剪內容。 預設為 true

備註

如果容器的區域太小而無法顯示所有子控制項,則不論值為何 WrapContents ,都會裁剪至少一個控制項。

容器的後續調整大小會將配置重新套用至包含的控制項。

適用於

另請參閱