Pageflex Document Action API
CreateColorCmyk Method (name, cyan, magenta, yellow, black, isSpot)
Namespaces > Pageflex.Scripting > Document > CreateColorCmyk(String, Double, Double, Double, Double, Boolean)
Creates a new CMYK Color with the specified name and values.
Syntax
C# | Visual Basic | Managed C++ |
Parameters
- name (String)
- Name of color to create.
- cyan (Double)
- A Double between 0 and 100, representing the cyan component of the color to create.
- magenta (Double)
- A Double between 0 and 100, representing the magenta component of the color to create.
- yellow (Double)
- A Double between 0 and 100, representing the yellow component of the color to create.
- black (Double)
- A Double between 0 and 100, representing the black component of the color to create.
- isSpot (Boolean)
- falseFalsefalse to create a process color, or trueTruetrue to create a spot color.
Return Value
The newly created Color.
Exceptions
Exception | Condition |
---|---|
ColorAlreadyExistsException | A color with the specified name already exists 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)