GetColor Method (name)

Pageflex Document Action API

Pageflex Document Action API GetColor Method (name)
Namespaces > Pageflex.Scripting > Document > GetColor(String)
Returns the Color with the specified name defined for the document.
Syntax
C# Visual Basic Managed C++
public Color GetColor (
	string name
)
Public Function GetColor ( _
	name As String _
) As Color
public:
Color^ GetColor (
	String^ name
)
Parameters
name (String)
Name of color to retrieve.
Return Value
The Color with the specified name defined for the document.
Exceptions
Exception Condition
ColorNotFoundException The specified color is not defined in the current document.
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)