Share via


ActivityDesigner.OnLayoutSize(ActivityDesignerLayoutEventArgs) 메서드

정의

ActivityDesigner에 있는 시각 신호나 자식 Activity Designer의 크기를 반환합니다.

protected:
 virtual System::Drawing::Size OnLayoutSize(System::Workflow::ComponentModel::Design::ActivityDesignerLayoutEventArgs ^ e);
protected virtual System.Drawing.Size OnLayoutSize (System.Workflow.ComponentModel.Design.ActivityDesignerLayoutEventArgs e);
abstract member OnLayoutSize : System.Workflow.ComponentModel.Design.ActivityDesignerLayoutEventArgs -> System.Drawing.Size
override this.OnLayoutSize : System.Workflow.ComponentModel.Design.ActivityDesignerLayoutEventArgs -> System.Drawing.Size
Protected Overridable Function OnLayoutSize (e As ActivityDesignerLayoutEventArgs) As Size

매개 변수

e
ActivityDesignerLayoutEventArgs

이벤트 데이터를 포함하는 ActivityDesignerLayoutEventArgs입니다.

반환

Size

시각 신호 또는 자식 활동 디자이너의 새 크기 설정입니다.

예외

e에 null 참조(Visual Basic의 경우 Nothing)가 포함된 경우

예제

다음 예제에서는 OnLayoutSize 메서드를 재정의하는 방법을 보여 줍니다. 이 예제에서는 Activity의 크기는 높이와 너비가 64인 상태로 유지됩니다.

readonly static Size BaseSize = new Size(64, 64);
protected override Size OnLayoutSize(ActivityDesignerLayoutEventArgs e)
{
    return BaseSize;
}
Shared ReadOnly BaseSize As New Size(64, 64)
Protected Overrides Function OnLayoutSize(ByVal e As ActivityDesignerLayoutEventArgs) As Size
    Return BaseSize
End Function

적용 대상