Click or drag to resize

IParentOfINameOwnerChildNodesRenameChild Method

Helper function called by a child of this collection to handle renaming of this child.

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
void RenameChild(
	INameOwner child,
	string newName,
	Action<string> setName,
	Action<string> raiseOnNameChanged
)

Parameters

child  INameOwner
The child's instance.
newName  String
The proposed new name of the child. The parent can modify this proposed name if another item with the same name is already contained in this collection.
setName  ActionString
Action to set the name to the provided value. This function should only set the name field, but not raise any events etc.
raiseOnNameChanged  ActionString
Action to raise the NameChanged event on the child.
Exceptions
ExceptionCondition
ArgumentNullExceptionNew name is null.
See Also