SetGrayStroke
Overview
SetGrayStroke is a class in Aspose.PDF FOSS for .NET.
Inherits from: BasicSetColorOperator.
G — Set gray stroke color.
This class declares 7 methods for SetGrayStroke objects in .NET programs.
Available methods include: Accept, IsTextShowOperator, SetGrayStroke, ToPdf, ToString, ValueEquals, getColor.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: B, C, Color, CommandName, G, Gray, and 5 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Gray | double | Read/Write | Gets or sets the gray level of the stroke color, from 0 (black) to 1 (white). |
Color | double[] | Read | Gets the color components. |
R | double | Read | Gets the red component. |
G | double | Read | Gets the green component. |
B | double | Read | Gets the blue component. |
C | double | Read | Gets the cyan component. |
M | double | Read | Gets the magenta component. |
Y | double | Read | Gets the yellow component. |
K | double | Read | Gets the black component. |
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 |
|---|---|
SetGrayStroke(gray: double) | Creates a G operator that sets the stroke color to the given gray level, from 0 (black) to 1 (white). |
ToPdf() | Calls ToPdf on this SetGrayStroke instance. |
ToString() | Calls ToString on this SetGrayStroke instance. |
Accept(visitor: IOperatorSelector) | Calls Accept(visitor) on this SetGrayStroke instance. |
getColor() | Calls getColor on this SetGrayStroke instance. |
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. |