Click or drag to resize

ProjectBaseTryGetExistingItemWithSameTypeAndName(Type, String, IProjectItem) 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.3618.0 (4.8.3618.0)
Syntax
C#
public bool TryGetExistingItemWithSameTypeAndName(
	Type projectItemType,
	string projectItemName,
	out IProjectItem existingItem
)

Parameters

projectItemType  Type
The type of the project item to test for.
projectItemName  String
The name of the project 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.
See Also