Class PlacementTarget
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
IndexintThe content index to move the element to, as MoveElement(NodeId, NodeId, int) counts it.
EditsIReadOnlyList<AttributeEdit>The attributes to write or remove on the element with the move.
IndicatorRectangleFThe area to highlight while dragging, in the container's local space.
IndicatorIsLinebooltrue when
Indicatoris 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
Index
The content index to move the element to, as MoveElement(NodeId, NodeId, int) counts it.
public int Index { get; init; }
Property Value
Indicator
The area to highlight while dragging, in the container's local space.
public RectangleF Indicator { get; init; }
Property Value
IndicatorIsLine
true when Indicator is an insertion line (a zero-width or zero-height
rectangle) rather than an area.
public bool IndicatorIsLine { get; init; }