SetColorStroke
Overview
SetColorStroke is a class in Aspose.PDF FOSS for .NET.
Inherits from: SetColorOperator.
SC — Set color in current color space (stroking).
This class provides 11 methods for working with SetColorStroke objects in .NET programs.
Available methods include: Accept, IsTextShowOperator, SetColorStroke, 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
| Name | Type | Access | Description |
|---|---|---|---|
Color | double[] | Read | Gets the color. |
R | double | Read/Write | Gets or sets the r. |
G | double | Read/Write | Gets or sets the g. |
B | double | Read/Write | Gets or sets the b. |
C | double | Read/Write | Gets or sets the c. |
M | double | Read/Write | Gets or sets the m. |
Y | double | Read/Write | Gets or sets the y. |
K | double | Read/Write | Gets or sets the k. |
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 |
|---|---|
SetColorStroke() | Calls SetColorStroke on this SetColorStroke instance. |
SetColorStroke(g: double) | Sets the color stroke value. |
SetColorStroke(r: double, g: double, b: double) | Sets the color stroke value. |
SetColorStroke(c: double, m: double, y: double, k: double) | Sets the color stroke value. |
SetColorStroke(color: double[]) | Sets the color stroke value. |
ToPdf() | Calls ToPdf on this SetColorStroke instance. |
Accept(visitor: IOperatorSelector) | Calls Accept on this SetColorStroke instance. |
getColor() | Calls getColor on this SetColorStroke 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. |