ActivityDesigner.OnLayoutSize(ActivityDesignerLayoutEventArgs) メソッド

定義

ActivityDesigner 上のビジュアル キューまたは子アクティビティ デザイナーのサイズを返します。

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

適用対象