GraphNodeCollection::CreateNew Method (String^)

 

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 being used, and then creates a node with that id.

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public:
GraphNode^ CreateNew(
	String^ idFormat
)

Parameters

idFormat
Type: System::String^

The string to format to create the new node id

Return Value

Type: Microsoft.VisualStudio.GraphModel::GraphNode^

The newly created node

Return to top
Show: