PdfTilingPattern Class

A tiling pattern of a document (ISO 32000-2, 8.7.3): a cell, drawn with the builder of PdfTilingPattern.CreateContentBuilder, repeated at fixed intervals over the areas it paints.

public sealed class PdfTilingPattern : PdfPattern

Remarks

A colored pattern sets the colors of its cell itself. An uncolored pattern (PdfTilingPattern.IsColored is false) is a stencil: its cell must not set colors, and the color is given when the pattern is set (PdfContentBuilder.SetFillPattern).

Inheritance
PdfPattern PdfTilingPattern

Properties

NameDescription
DocumentGets the document of the pattern.
IsColoredGets whether the pattern sets its colors itself; an uncolored pattern is painted with the color given when it is set.
ResourcesGets the resource dictionary of the cell.

Gets the document of the pattern.

public PdfDocument Document { get; }

Property value

PdfDocument

Gets whether the pattern sets its colors itself; an uncolored pattern is painted with the color given when it is set.

public bool IsColored { get; }

Property value

bool

Gets the resource dictionary of the cell.

public PdfDictionary Resources { get; }

Property value

PdfDictionary

Methods

NameDescription
CreateContentBuilder()Creates a builder that appends to the content of the cell.

CreateContentBuilder()

PdfTilingPattern.cs

Creates a builder that appends to the content of the cell.

public PdfContentBuilder CreateContentBuilder()

Returns

PdfContentBuilder The builder.