FlowLayoutSettings.WrapContents FlowLayoutSettings.WrapContents FlowLayoutSettings.WrapContents FlowLayoutSettings.WrapContents Property

定义

获取或设置一个值,该值指示当内容超过其容器的原始边界时应该对其进行包装还是应该对其进行剪辑。Gets or sets a value indicating whether the contents should be wrapped or clipped when they exceed the original boundaries of their container.

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

属性值

如果应包装内容,则为 true;否则,如果应剪辑内容,则为 falsetrue if the contents should be wrapped; otherwise, false if the contents should be clipped. 默认值为 trueThe default is true.

注解

如果容器的区域太小,无法显示所有子控件,则至少一个控件将剪辑元素而不考虑WrapContents值。If the area of the container is too small to display all the child controls, then at least one control will be clipped regardless of the WrapContents value.

后续重设大小的容器将重新应用到所包含的控件的布局。Subsequent resizing of the container will reapply the layout to the contained controls.

适用于

另请参阅