PdfShadingElement Class

A shading a page paints (ISO 32000-2, 8.7.4.5), with the sh operator or as a shading pattern.

public sealed class PdfShadingElement : IEquatable<PdfShadingElement>
Implements

Constructors

NameDescription
PdfShadingElement(int, PdfMatrix, string)A shading a page paints (ISO 32000-2, 8.7.4.5), with the sh operator or as a shading pattern.

PdfShadingElement(int, PdfMatrix, string)

PdfShadingElement.cs

A shading a page paints (ISO 32000-2, 8.7.4.5), with the sh operator or as a shading pattern.

public PdfShadingElement(int ShadingType, PdfMatrix Matrix, string Digest)

Parameters

ShadingType int
The type of the shading: 1 to 7.
Matrix PdfMatrix
The matrix from the space of the shading to default user space.
Digest string
A SHA-256 digest of the dictionary of the shading, in hexadecimal.

Properties

NameDescription
DigestA SHA-256 digest of the dictionary of the shading, in hexadecimal.
MatrixThe matrix from the space of the shading to default user space.
ShadingTypeThe type of the shading: 1 to 7.

A SHA-256 digest of the dictionary of the shading, in hexadecimal.

public string Digest { get; init; }

Property value

string

The matrix from the space of the shading to default user space.

public PdfMatrix Matrix { get; init; }

Property value

PdfMatrix

The type of the shading: 1 to 7.

public int ShadingType { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(int, PdfMatrix, string)
Equals(PdfShadingElement?)
Equals(object?)
GetHashCode()
ToString()Returns a string that represents the current object.

Deconstruct(int, PdfMatrix, string)

public void Deconstruct(out int ShadingType, out PdfMatrix Matrix, out string Digest)

Parameters

ShadingType int
Matrix PdfMatrix
Digest string

No documentation is available.

Equals overloads

Equals(PdfShadingElement?)

public bool Equals(PdfShadingElement? other)
Parameters
other PdfShadingElement?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.

Operators

NameDescription
operator ==(PdfShadingElement?, PdfShadingElement?)
operator !=(PdfShadingElement?, PdfShadingElement?)

operator ==(PdfShadingElement?, PdfShadingElement?)

public static bool operator ==(PdfShadingElement? left, PdfShadingElement? right)

Parameters

left PdfShadingElement?
right PdfShadingElement?

Returns

bool

No documentation is available.

operator !=(PdfShadingElement?, PdfShadingElement?)

public static bool operator !=(PdfShadingElement? left, PdfShadingElement? right)

Parameters

left PdfShadingElement?
right PdfShadingElement?

Returns

bool

No documentation is available.