Compartilhar via


GraphNodeCollection.CreateNew(String) Method

Definition

Add a new node using the given base name format for the node. This method formats the given string with integer values until it finds an id that is not currently in use, then creates a node with that id.

public:
 Microsoft::VisualStudio::GraphModel::GraphNode ^ CreateNew(System::String ^ idFormat);
public Microsoft.VisualStudio.GraphModel.GraphNode CreateNew (string idFormat);
member this.CreateNew : string -> Microsoft.VisualStudio.GraphModel.GraphNode
Public Function CreateNew (idFormat As String) As GraphNode

Parameters

idFormat
String

The string to format to create the new node id

Returns

The newly created node

Applies to