Table of Contents
SaveGfxState Property

Gets or sets a value indicating whether the PdfContent object should automatically save and restore graphic state when rendered.

Syntax
 public Boolean? SaveGfxState { get; set; }
Remarks

This property is set to true by default, in which case any graphic state changes occured inside this PdfContent would not have any impact on anything outside of the PdfContent object.

If this property is set to false, then graphic state is not restored after the PdfContent is rendered. Consider the following scenario:

PdfContent A contains PdfContent B and PdfContent C; PdfContent B's SaveGfxState is set to false; Changing PdfContent B's ForeColor property will also change the effective ForeColor for PdfContent C because PdfContent C is rendered after PdfContent B;
See Also