Click or drag to resize

ProjectItemCollectionBaseTItemRenameChild 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#
public void RenameChild(
	INameOwner child,
	string newName,
	Action<string> setName,
	Action<string> raiseOnNameChanged
)

Parameters

child  INameOwner
The child's instance.
newName  String
The new name of the child.
setName  ActionString
Action to set the name to the provided value. This function should only do set the name, but not raise any evens etc.
raiseOnNameChanged  ActionString
Action to raise the NameChanged event on the child.

Implements

IParentOfINameOwnerChildNodesRenameChild(INameOwner, String, ActionString, ActionString)
Exceptions
ExceptionCondition
ArgumentNullExceptionnewName - New name is null
ApplicationException
See Also