FreeformActivityDesigner.AutoSizeMargin Property

Definition

Gets or sets the margin size to render around the child designers when the FreeformActivityDesigner is automatically resized.

C#
public System.Drawing.Size AutoSizeMargin { get; set; }

Property Value

A Size that represents the size of the margin to render around the child designers of the FreeformActivityDesigner.

Remarks

The default size of AutoSizeMargin is a Size object with dimensions of 40 pixels by 40 pixels.

If the AmbientTheme.ShowGrid property associated with the current workflow theme is set to true, AutoSizeMargin settings are half the height and half the width of the grid size.

When you set AutoSizeMargin, the layout of the FreeformActivityDesigner is updated.

Applies to

產品 版本
.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