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 declares 13 methods for SetAdvancedColorStroke objects in .NET programs.
Available methods include: Accept, IsTextShowOperator, SetAdvancedColorStroke, ToPdf, ToString, ValueEquals, getColor.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Color, CommandName, Index, PatternName.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Color | double[] | Read | Gets the stroke color components, written before the optional pattern name. |
PatternName | string? | Read | Gets the pattern name. |
CommandName | string | Read | The PDF command name (last token of the serialised form, e.g. |
Index | int | Read/Write | 1-based position of this operator within its containing OperatorCollection. |
Methods
| Signature | Description |
|---|---|
SetAdvancedColorStroke() | Creates an SCN operator with no color components and no pattern. |
SetAdvancedColorStroke(g: double) | Creates an SCN operator with one component, such as a gray level, and no pattern. |
SetAdvancedColorStroke(patternName: string) | Creates an SCN operator that selects the named pattern resource (without the leading slash) with no color components. |
SetAdvancedColorStroke(g: double, patternName: string) | Creates an SCN operator with one component and the named pattern resource (without the leading slash); a null name writes no pattern. |
SetAdvancedColorStroke(colors: double[], patternName: string) | Creates an SCN operator with the given components (a null array gives none) and the named pattern resource (without the leading slash); a null name writes no pattern. |
SetAdvancedColorStroke(r: double, g: double, b: double, patternName: string) | Creates an SCN operator with three components, such as red, green and blue, and the named pattern resource (without the leading slash); a null name writes no pattern. |
SetAdvancedColorStroke(c: double, m: double, y: double, k: double, patternName: string) | Creates an SCN operator with four components, such as cyan, magenta, yellow and black, and the named pattern resource (without the leading slash); a null name writes no pattern. |
ToPdf() | Calls ToPdf on this SetAdvancedColorStroke instance. |
Accept(visitor: IOperatorSelector) | Calls Accept(visitor) 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. |