Click or drag to resize

graphToolsMakeUniqueChildName Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Makes the unique name for a child, based on proposal and counter, formatted by limit digit width: e.g. if limit is 100, format is: D3, producing: proposal+001, +002, +003...

Namespace:  imbSCI.Data.collection.graph
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public static string MakeUniqueChildName(
	this IGraphNode parent,
	string proposal,
	int limit = 999,
	int toSkip = 0,
	bool addNumberSufixForFirst = true
)
Request Example View Source

Parameters

parent
Type: imbSCI.Data.collection.graphIGraphNode
The parent for whom the child name is made
proposal
Type: SystemString
The proposal form, neither it already exist or not
limit (Optional)
Type: SystemInt32
The limit: number of cycles to terminate the search
toSkip (Optional)
Type: SystemInt32
To skip.
addNumberSufixForFirst (Optional)
Type: SystemBoolean
if set to true it adds number sufix even if it is the first child with proposed name

Return Value

Type: String
Unique name for new child in format: proposal001 up to limit

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraphNode. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also