Class PdfLayer
The PdfLayer used to create layers in PDF document. Layers refers to sections of content in a PDF document that can be selectively viewed or hidden by document authors or consumers
Inheritance
System.Object
PdfLayer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class PdfLayer : IPdfWrapper
Properties
Layers
Gets the collection of child PdfLayer
Declaration
public PdfDocumentLayerCollection Layers { get; }
Property Value
Type | Description |
---|---|
PdfDocumentLayerCollection | The PdfDocumentLayerCollection used to handle collection of PdfLayer |
Name
Gets or sets the name of the layer
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrintState
Gets or sets printing state of the layer
Declaration
public PdfPrintState PrintState { get; set; }
Property Value
Type | Description |
---|---|
PdfPrintState |
Visible
Gets or sets the visible of the layer
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CreateGraphics(PdfPageBase)
Initializes Graphics context of the layer.
Declaration
public PdfGraphics CreateGraphics(PdfPageBase page)
Parameters
Type | Name | Description |
---|---|---|
PdfPageBase | page | The page. |
Returns
Type | Description |
---|---|
PdfGraphics |