FlowLayoutPanel.WrapContents 속성

정의

FlowLayoutPanel 컨트롤에서 내용을 래핑할지 또는 클리핑할지 나타내는 값을 가져오거나 설정합니다.

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 Checked 따라 속성의 CheckBox 값을 설정합니다.

private:
    void wrapContentsCheckBox_CheckedChanged(
        System::Object^ sender, System::EventArgs^ e)
    {
        this->flowLayoutPanel1->WrapContents =
            this->wrapContentsCheckBox->Checked;
    }
private void wrapContentsCheckBox_CheckedChanged(
    System.Object sender, 
    System.EventArgs e)
{
    this.FlowLayoutPanel1.WrapContents = 
        this.wrapContentsCheckBox.Checked;
}
Private Sub wrapContentsCheckBox_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles wrapContentsCheckBox.CheckedChanged

    Me.FlowLayoutPanel1.WrapContents = Me.wrapContentsCheckBox.Checked

End Sub

설명

패널의 영역이 너무 작아서 모든 자식 컨트롤을 포함할 수 없는 경우 래핑 모드에 관계없이 하나 이상의 자식 컨트롤이 잘립니다.

패널의 후속 크기 조정은 포함된 컨트롤에 레이아웃을 다시 적용합니다.

적용 대상

추가 정보