Click or drag to resize

ProjectBaseTryGetExistingItemWithSameTypeAndName Method

Tries to get an existing project item with the same type and name as the provided item.

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public bool TryGetExistingItemWithSameTypeAndName(
	IProjectItem item,
	out IProjectItem existingItem
)

Parameters

item  IProjectItem
The item to test for.
existingItem  IProjectItem
If an item with the same type and name as the provided item exists in the project, that existing item is returned.

Return Value

Boolean
True if an item with the same type and name as the provided item exists in the project; otherwise, false.
Exceptions
See Also