SetAdvancedColor

SetAdvancedColor

Overview

SetAdvancedColor is a class in Aspose.PDF FOSS for .NET. Inherits from: BasicSetColorAndPatternOperator.

scn — Set color (with optional pattern name) in current color space (non-stroking).

This class provides 13 methods for working with SetAdvancedColor objects in .NET programs. Available methods include: Accept, IsTextShowOperator, SetAdvancedColor, ToPdf, ToString, ValueEquals, getColor. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Color, CommandName, Index, PatternName.

Properties

NameTypeAccessDescription
Colordouble[]ReadGets the color.
PatternNamestring?ReadGets the pattern name.
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
SetAdvancedColor()Calls SetAdvancedColor on this SetAdvancedColor instance.
SetAdvancedColor(g: double)Sets the advanced color value.
SetAdvancedColor(patternName: string)Sets the advanced color value.
SetAdvancedColor(g: double, patternName: string)Sets the advanced color value.
SetAdvancedColor(colors: double[], patternName: string)Sets the advanced color value.
SetAdvancedColor(r: double, g: double, b: double, patternName: string)Sets the advanced color value.
SetAdvancedColor(c: double, m: double, y: double, k: double, patternName: string)Sets the advanced color value.
ToPdf()Calls ToPdf on this SetAdvancedColor instance.
Accept(visitor: IOperatorSelector)Calls Accept on this SetAdvancedColor instance.
getColor()Calls getColor on this SetAdvancedColor 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