Click or drag to resize
Ranorex

RxPathChangePrefix Method (RxPath, RxPath, RxPath)

Changes a given prefix of an RxPath to a new prefix.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static RxPath ChangePrefix(
	RxPath path,
	RxPath oldPrefix,
	RxPath newPrefix
)

Parameters

path
Type: Ranorex.CoreRxPath
The path to change.
oldPrefix
Type: Ranorex.CoreRxPath
The old prefix.
newPrefix
Type: Ranorex.CoreRxPath
The new prefix.

Return Value

Type: RxPath
The path with the changed prefix.
Exceptions
ExceptionCondition
RxPathExceptionIf oldPrefix is not a prefix of the supplied path.
See Also