Прочитать на английском Изменить

Поделиться через


FreeformActivityDesigner.MoveContainedDesigner Method

Definition

Moves the specified ActivityDesigner to the specified location.

C#
public void MoveContainedDesigner(System.Workflow.ComponentModel.Design.ActivityDesigner containedDesigner, System.Drawing.Point newLocation);

Parameters

containedDesigner
ActivityDesigner

The ActivityDesigner to move.

newLocation
Point

The Point that represents the designer's new location.

Exceptions

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

containedDesigner is not found in the ContainedDesigners collection.

Remarks

MoveContainedDesigner sets new bounds for the moved designer and performs all required layout operations for the FreeformActivityDesigner on the workflow design surface.

containedDesigner must be in a child of the FreeformActivityDesigner before you call MoveContainedDesigner. If it is not, MoveContainedDesigner throws an ArgumentException.

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