SetColorStroke

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

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
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.

See Also