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

    node

    The 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

    node

    The DiagramNode related to the event.

    pointerPosition

    The position of the pointer when the event occurred.

    adjustmentHandle

    The 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

    node

    The DiagramNode related to the event.

    selectionRectangle

    The selection rectangle on the diagram when the event occurred.

    Return 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