SetAdvancedColorStroke

SetAdvancedColorStroke

Overview

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

SCN — Set color (with optional pattern name) in current color space (stroking).

This class provides 13 methods for working with SetAdvancedColorStroke objects in .NET programs. Available methods include: Accept, IsTextShowOperator, SetAdvancedColorStroke, 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
SetAdvancedColorStroke()Calls SetAdvancedColorStroke on this SetAdvancedColorStroke instance.
SetAdvancedColorStroke(g: double)Sets the advanced color stroke value.
SetAdvancedColorStroke(patternName: string)Sets the advanced color stroke value.
SetAdvancedColorStroke(g: double, patternName: string)Sets the advanced color stroke value.
SetAdvancedColorStroke(colors: double[], patternName: string)Sets the advanced color stroke value.
SetAdvancedColorStroke(r: double, g: double, b: double, patternName: string)Sets the advanced color stroke value.
SetAdvancedColorStroke(c: double, m: double, y: double, k: double, patternName: string)Sets the advanced color stroke value.
ToPdf()Calls ToPdf on this SetAdvancedColorStroke instance.
Accept(visitor: IOperatorSelector)Calls Accept on this SetAdvancedColorStroke instance.
getColor()Calls getColor on this SetAdvancedColorStroke 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