SelectionResult

References
public sealed class SelectionResult
List of all (de)selected objects and wires during a picking or selection operation.

Constructors

SelectionResult

#
Construct an empty selection result.
public SelectionResult(
document,
PointF?
point
)

Properties

DeselectedCount

#
Gets the number of objects that were deselected by this operation.
public int DeselectedCount { get; }

DeselectedObjectCount

#
public int DeselectedObjectCount { get; }

DeselectedWireCount

#
public int DeselectedWireCount { get; }

Document

#
Gets the document this selection esult is tied to.
public Document Document { get; }

InletUnderPick

#
Gets the Instance ID of the parameter whose inlet was underneath the pick location. If no inlet was picked this will return Guid.Empty.
public Guid InletUnderPick { get; }

Kind

#
Gets the pick kind.
public Pick Kind { get; }

ObjectUnderPick

#
Gets the Instance ID of the object underneath the pick location. If no object was picked this will return Guid.Empty.
public Guid ObjectUnderPick { get; }

OutletUnderPick

#
Gets the Instance ID of the parameter whose inlet was underneath the pick location. If no outlet was picked this will return Guid.Empty.
public Guid OutletUnderPick { get; }

Point

#
Gets the origin point, if any, for this pick.
public PointF? Point { get; }

SelectedCount

#
Gets the number of objects that were selected by this operation. This is not the same as the total number of selected objects.
public int SelectedCount { get; }

SelectedObjectCount

#
public int SelectedObjectCount { get; }

SelectedWireCount

#
public int SelectedWireCount { get; }

WireUnderPick

#
Gets the Instance IDs of the source and target parameters of the wire underneath the pick location. If no wire was picked this will return WireEnds.Empty.
public WireEnds WireUnderPick { get; }

Methods

Merge

#
Merge the selected and deselected states of another result into this one.
public void Merge()

SetPickedInlet

#
Set the parameter inlet directly under the pick.
public void SetPickedInlet()

SetPickedObject

#
Set the object directly under the pick.
public void SetPickedObject(
obj,
foreGroundObject
)

SetPickedOutlet

#
Set the parameter outlet directly under the pick.
public void SetPickedOutlet()

SetPickedWire

#
Set the wire directly under the pick.
public void SetPickedWire()

UnsetIfNotOnGroupBorder

#
If this selection result points to a GroupObject, but the picking point is not on the group dragging boundary, unset the result.
public void UnsetIfNotOnGroupBorder()