SetColor

Overview

SetColor is a class in Aspose.PDF FOSS for .NET. Inherits from: SetColorOperator.

sc — Set color in current color space (non-stroking).

This class provides 11 methods for working with SetColor objects in .NET programs. Available methods include: Accept, IsTextShowOperator, SetColor, 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, Index, and 4 more.

Properties

NameTypeAccessDescription
Colordouble[]ReadGets the color.
RdoubleRead/WriteGets or sets the r.
GdoubleRead/WriteGets or sets the g.
BdoubleRead/WriteGets or sets the b.
CdoubleRead/WriteGets or sets the c.
MdoubleRead/WriteGets or sets the m.
YdoubleRead/WriteGets or sets the y.
KdoubleRead/WriteGets or sets the k.
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
SetColor()Calls SetColor on this SetColor instance.
SetColor(g: double)Sets the color value.
SetColor(r: double, g: double, b: double)Sets the color value.
SetColor(c: double, m: double, y: double, k: double)Sets the color value.
SetColor(color: double[])Sets the color value.
ToPdf()Calls ToPdf on this SetColor instance.
ToString()Calls ToString on this SetColor instance.
Accept(visitor: IOperatorSelector)Calls Accept on this SetColor instance.
getColor()Calls getColor on this SetColor instance.
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