This documentation is archived and is not being maintained.

ActivityDesigner.OnLayoutSize Method

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

Namespace:  System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

protected virtual Size OnLayoutSize(
	ActivityDesignerLayoutEventArgs e

Return Value

Type: System.Drawing.Size
The Size that contains the new size settings for the visual cues or child activity designers.


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

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.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0