Export (0) Print
Expand All
Expand Minimize

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
)
protected Size OnLayoutSize (
	ActivityDesignerLayoutEventArgs e
)
protected function OnLayoutSize (
	e : ActivityDesignerLayoutEventArgs
) : Size
Not applicable.

Parameters

e

The ActivityDesignerLayoutEventArgs that contains the event data.

Return Value

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

Exception typeCondition

ArgumentNullException

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft