Table of Contents

Class PlacementOperation

Namespace
Alternet.FormDesigner.Wpf
Assembly
Alternet.FormDesigner.Wpf.v10.dll

Stores data about a placement operation.

public sealed class PlacementOperation
Inheritance
PlacementOperation

Fields

PasteOffset

Offset for inserted Components

Properties

CurrentContainer

Gets the current container for the placement operation.

CurrentContainerBehavior

Gets the placement behavior for the current container.

Description

Gets/Sets the description of the underlying change group.

IsAborted

Gets if the placement operation was aborted.

IsCommitted

Gets if the placement operation was committed.

PlacedItems

The items being placed.

SetSelectionOnPlacedItems

Gets or sets a value indicating whether current selection should be replaced.

Type

The type of the placement being done.

Methods

Abort()

Aborts the operation. This aborts the underlying change group, reverting all changes done while the operation was running.

ChangeContainer(DesignItem)

Make the placed item switch the container. This method assumes that you already have checked if changing the container is possible.

Commit()

Commits the operation. This commits the underlying change group.

DeleteItemsAndCommit()

Deletes the items being placed, and commits the placement operation.

GetPlacementBehavior(ICollection<DesignItem>)

Gets the placement behavior associated with the specified items.

GetPlacementBehavior(ICollection<DesignItem>, out List<DesignItem>, PlacementType)

Gets the placement behavior associated with the specified items.

GetRealElementSize(UIElement)

The Size which the Element really should have (even if its smaller Rendered (like empty Image!))

Start(ICollection<DesignItem>, PlacementType)

Starts a new placement operation that changes the placement of placedItems.

TryStartInsertNewComponents(DesignItem, IList<DesignItem>, IList<Rect>, PlacementType)

Try to insert new components into the container.