NodeValidationEventArgs
open class NodeValidationEventArgs : NodeEventArgs
A class that specifies arguments for validation of actions performed on DiagramNode objects.
-
Initializes a new instance of the NodeValidationEventArgs class.
Declaration
Swift
public override init(node: DiagramNode)Parameters
nodeThe DiagramNode related to the event.
Return Value
The newly created NodeValidationEventArgs object.
-
Initializes a new instance of the NodeValidationEventArgs class.
Declaration
Swift
public override init(node: DiagramNode, pointerPosition: Point, adjustmentHandle: NodeHandleType)Parameters
nodeThe DiagramNode related to the event.
pointerPositionThe position of the pointer when the event occurred.
adjustmentHandleThe adjustment handle dragged by the user.
Return Value
The newly created NodeValidationEventArgs object.
-
Initializes a new instance of the NodeValidationEventArgs class.
Declaration
Swift
public init(node: DiagramNode, selectionRectangle: Rect)Parameters
nodeThe DiagramNode related to the event.
selectionRectangleReturn Value
The newly created NodeValidationEventArgs object.
-
Cancels the creation or modification of the DiagramNode. Calling this method immediately stops the operation.
Declaration
Swift
open func cancelDrag() -
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
NodeValidationEventArgs Class Reference