ActivityDesigner.OnLayoutSize(ActivityDesignerLayoutEventArgs) Method

Definition

Returns the size of the visual cues or child activity designers on the ActivityDesigner.

C#
protected virtual System.Drawing.Size OnLayoutSize(System.Workflow.ComponentModel.Design.ActivityDesignerLayoutEventArgs e);

Parameters

Returns

The new size settings for the visual cues or child activity designers.

Exceptions

e contains a null reference (Nothing in Visual Basic).

Examples

The following example shows how to override the OnLayoutSize method. For this example, the size of the Activity remains static with a height and width of 64.

C#
readonly static Size BaseSize = new Size(64, 64);
protected override Size OnLayoutSize(ActivityDesignerLayoutEventArgs e)
{
    return BaseSize;
}

Applies to

Proizvod Verzije
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1