LinkValidationEventArgs
open class LinkValidationEventArgs : LinkEventArgs
A class that specifies arguments for validation of actions performed on DiagramLink objects.
-
Initializes a new instance of the LinkValidationEventArgs class.
Declaration
Swift
public override init(link: DiagramLink)
Parameters
node
The DiagramLink related to the event.
Return Value
The newly created LinkValidationEventArgs object.
-
Initializes a new instance of the LinkValidationEventArgs class.
Declaration
Swift
public init(link: DiagramLink, pointerPosition: Point, adjustmentHandle: Int, node: DiagramNode, anchorIndex: Int, tableRow: Int)
Parameters
link
The DiagramLink related to the event.
pointerPosition
The position of the pointer when the event occurred.
adjustmentHandle
The
AdjustmentHandle
dragged by the user.node
The DiagramNode related to the event.
anchorIndex
The index of the link anchor.
tableRow
The index of the table row related to the event.
Return Value
The newly created LinkValidationEventArgs object.
-
Initializes a new instance of the LinkValidationEventArgs class.
Declaration
Swift
public init(link: DiagramLink, selectionRectangle: Rect)
Parameters
link
The DiagramLink related to the event.
selectionRectangle
Return Value
The newly created LinkValidationEventArgs object.
-
Cancels the creation or modification of the DiagramLink. Calling this method immediately stops the operation.
Declaration
Swift
open func cancelDrag()
-
Gets the DiagramNode to which the DiagramLink will be connected.
Declaration
Swift
open var node: DiagramNode { get }
Return Value
The DiagramNode, which is destination for the DiagramLink.
-
Gets the DiagramNode, which will become the origin of the DiagramLink if the event is validated.
Declaration
Swift
open var origin: DiagramNode { get }
Return Value
The DiagramNode, which will be the origin of the DiagramLink.
-
Gets the DiagramNode, which will become the destination of the DiagramLink if the event is validated.
Declaration
Swift
open var destination: DiagramNode { get }
Return Value
The DiagramNode, which will be the destination of the DiagramLink.
-
Gets the index of the anchor point, related to this LinkValidationEventArgs event.
Declaration
Swift
open var anchorIndex: Int { get }
Return Value
The index of the anchor point.
-
Gets the index of the table row, related to this LinkValidationEventArgs event.
Declaration
Swift
open var tableRow: Int { get }
Return Value
The index of the anchor point.
-
Gets a value that indicates if the user modifies the end point of the DiagramLink’s, origin.
Declaration
Swift
open var changingOrigin: Bool { get }
Return Value
true if the user modifies the origin of the DiagramLink.; otherwise false.
-
Gets a value that indicates if the user modifies the end point of the DiagramLink’s, destination.
Declaration
Swift
open var changingDestination: Bool { get }
Return Value
true if the user modifies the destination of the DiagramLink.; otherwise false.
-
Gets the current selection rectangle.
Declaration
Swift
open var selectionRectangle: Rect { get }
-
A bool field, which specifies if a node modification or drag is cancelled.
Declaration
Swift
open var cancel: Bool