Click or drag to resize

PdfTilingPattern Class

A tiling pattern consists of a small graphical figure called a pattern cell. Painting with the pattern replicates the cell at fixed horizontal and vertical intervals to fill an area. The effect is as if the figure were painted on the surface of a clear glass tile, identical copies of which were then laid down in an array covering the area and trimmed to its boundaries. This process is called tiling the area.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfObject
    SautinSoft.Pdf.ContentPdfContentResource
      SautinSoft.Pdf.Content.PatternsPdfPattern
        SautinSoft.Pdf.Content.PatternsPdfTilingPattern

Namespace: SautinSoft.Pdf.Content.Patterns
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.11.10
Syntax
public sealed class PdfTilingPattern : PdfPattern

The PdfTilingPattern type exposes the following members.

Constructors
 NameDescription
Public methodPdfTilingPattern Initializes a new instance of the PdfTilingPattern class.
Top
Properties
 NameDescription
Public propertyBoundingBox(Required) An array of four numbers in the pattern coordinate system giving the coordinates of the left, bottom, right, and top edges, respectively, of the pattern cell's bounding box. These boundaries shall be used to clip the pattern cell.
Public propertyContent Gets the content of this tiling pattern.
Public propertyIsColored

(Required) A value that determines how the color of the pattern cell shall be specified:

  • for Colored tiling pattern. The pattern’s content stream shall specify the colors used to paint the pattern cell. When the content stream begins execution, the current color is the one that was initially in effect in the pattern’s parent content stream. This is similar to the definition of the pattern matrix; see 8.7.2, "General Properties of Patterns".
  • for Uncolored tiling pattern. The pattern’s content stream shall not specify any color information. Instead, the entire pattern cell is painted with a separately specified color each time the pattern is used. Essentially, the content stream describes a stencil through which the current color shall be poured. The content stream shall not invoke operators that specify colors or other color-related parameters in the graphics state; otherwise, an error occurs (see 8.6.8, "Color Operators"). The content stream may paint an image mask, however, since it does not specify any color information (see 8.9.6.2, "Stencil Masking").
Public propertyPatternType(Required) A code identifying the type of pattern that this PdfPattern describes.
(Overrides PdfPatternPatternType)
Public propertyXStep

(Required) The desired horizontal spacing between pattern cells, measured in the pattern coordinate system.

Note  Note
XStep and YStep may differ from the dimensions of the pattern cell implied by the BoundingBox entry. This allows tiling with irregularly shaped figures.

XStep and YStep may be either positive or negative but shall not bezero.

Public propertyYStep

(Required) The desired vertical spacing between pattern cells, measured in the pattern coordinate system.

Note  Note
XStep and YStep may differ from the dimensions of the pattern cell implied by the BoundingBox entry. This allows tiling with irregularly shaped figures.

XStep and YStep may be either positive or negative but shall not bezero.

Top
Methods
 NameDescription
Public methodSetBoundingBox Sets the BoundingBox.
Top
Extension Methods
 NameDescription
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfObject or if no PdfArray serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Top
See Also