OnLayoutSize Method
Collapse the table of content
Expand the table of content

ActivityDesigner.OnLayoutSize Method (ActivityDesignerLayoutEventArgs)


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 new size settings for the visual cues or child activity designers.

Exception Condition

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;

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft