Table of Contents

Class PlacementTarget

Namespace
Icy.Design.Editor.Placement
Assembly
IcyUI.Design.dll

Where a dropped element lands in a container.

public sealed record PlacementTarget : IEquatable<PlacementTarget>
Inheritance
PlacementTarget
Implements
Inherited Members
Extension Methods

Constructors

PlacementTarget(int, IReadOnlyList<AttributeEdit>, RectangleF, bool)

Where a dropped element lands in a container.

public PlacementTarget(int Index, IReadOnlyList<AttributeEdit> Edits, RectangleF Indicator, bool IndicatorIsLine)

Parameters

Index int

The content index to move the element to, as MoveElement(NodeId, NodeId, int) counts it.

Edits IReadOnlyList<AttributeEdit>

The attributes to write or remove on the element with the move.

Indicator RectangleF

The area to highlight while dragging, in the container's local space.

IndicatorIsLine bool

true when Indicator is an insertion line (a zero-width or zero-height rectangle) rather than an area.

Properties

Edits

The attributes to write or remove on the element with the move.

public IReadOnlyList<AttributeEdit> Edits { get; init; }

Property Value

IReadOnlyList<AttributeEdit>

Index

The content index to move the element to, as MoveElement(NodeId, NodeId, int) counts it.

public int Index { get; init; }

Property Value

int

Indicator

The area to highlight while dragging, in the container's local space.

public RectangleF Indicator { get; init; }

Property Value

RectangleF

IndicatorIsLine

true when Indicator is an insertion line (a zero-width or zero-height rectangle) rather than an area.

public bool IndicatorIsLine { get; init; }

Property Value

bool