Table of Contents

Class DuplicateNode

Namespace
Artemis.UI.Shared.Services.NodeEditor.Commands
Assembly
Artemis.UI.Shared.dll

Represents a node editor command that can be used to duplicate a node.

public class DuplicateNode : INodeEditorCommand, IDisposable
Inheritance
object
DuplicateNode
Implements

Constructors

DuplicateNode(INodeScript, INode, bool, INodeService)

Creates a new instance of the DeleteNode class.

public DuplicateNode(INodeScript nodeScript, INode node, bool copyIncomingConnections, INodeService nodeService)

Parameters

nodeScript INodeScript

The node script the node belongs to.

node INode

The node to delete.

copyIncomingConnections bool

A boolean indicating whether incoming connections should be copied.

nodeService INodeService

The service to use to duplicate the node.

Properties

DisplayName

Gets the name of the command

public string DisplayName { get; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Execute()

Executes the command

public void Execute()

Undo()

Undoes the command

public void Undo()