SetCMYKColor

Overview

SetCMYKColor is a class in Aspose.PDF FOSS for .NET. Inherits from: BasicSetColorOperator.

k — Set CMYK fill color.

This class provides 7 methods for working with SetCMYKColor objects in .NET programs. Available methods include: Accept, IsTextShowOperator, SetCMYKColor, ToPdf, ToString, ValueEquals, getColor. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: B, C, Color, CommandName, G, Gray, and 5 more.

Properties

NameTypeAccessDescription
CdoubleRead/WriteGets or sets the c.
MdoubleRead/WriteGets or sets the m.
YdoubleRead/WriteGets or sets the y.
KdoubleRead/WriteGets or sets the k.
Colordouble[]ReadGets the color.
GraydoubleReadGets the gray.
RdoubleReadGets the r.
GdoubleReadGets the g.
BdoubleReadGets the b.
CommandNamestringReadThe PDF command name (last token of the serialised form, e.g.
IndexintRead/Write1-based position of this operator within its containing OperatorCollection.

Methods

SignatureDescription
SetCMYKColor(c: double, m: double, y: double, k: double)Sets the cmyk color value.
ToPdf()Calls ToPdf on this SetCMYKColor instance.
Accept(visitor: IOperatorSelector)Calls Accept on this SetCMYKColor instance.
getColor()Calls getColor on this SetCMYKColor instance.
ToString()Default string form is the PDF serialisation, so callers (test helpers, debug logs) get the same content-stream text whether they hold an unparsed RawOperator or a typed subclass.
IsTextShowOperator(op: Operator)True when op is a text-showing operator (Tj / TJ / ’ / " — concrete subclasses of TextShowOperator).
ValueEquals(op: Operator)True when this operator’s serialised PDF form equals op’s.

See Also