FindElement Method (name)

Pageflex Document Action API

Pageflex Document Action API FindElement Method (name)
Namespaces > Pageflex.Scripting > Page > FindElement(String)
Finds the Element with the specified name which descends from this element.
Syntax
C# Visual Basic Managed C++
public Element FindElement (
	string name
)
Public Function FindElement ( _
	name As String _
) As Element
public:
virtual Element^ FindElement (
	String^ name
) sealed
Parameters
name (String)
Name of element to retrieve.
Return Value
The specified Element object.
Remarks
This method provides a simple way to find a particular named element. To find elements based on more complex criteria, search the document using NextElementInTree.
Exceptions
Exception Condition
ElementNotFoundException The specified element was not found.
ArgumentNullException The value supplied for name was nullNothingnullptr.
StaleScriptingObjectException This object's associated internal object no longer exists.

Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)