Class PdfPageResources
The class provides methods and properties to access the PDF page resources.
Inheritance
System.Object
PdfPageResources
Namespace: Syncfusion.Pdf
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public class PdfPageResources : Object
Constructors
PdfPageResources()
Initializes the new instance of the class PdfPageResources
Declaration
public PdfPageResources()
Properties
Item[String]
Gets or sets the value associated with the key.
Declaration
public object this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Property Value
Type |
---|
System.Object |
Resources
Gets the PDF page resources.
Declaration
public Dictionary<string, object> Resources { get; }
Property Value
Type |
---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
Methods
Add(String, Object)
Adds the resource with the specified name.
Declaration
public void Add(string resourceName, object resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceName | Name of the resource |
System.Object | resource | Resource to add |
ContainsKey(String)
Returns if the key already exists.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Returns
Type | Description |
---|---|
System.Boolean | if key present true,else false |
isSameFont()
Returns if the FontCollection has same font face.
Declaration
public bool isSameFont()
Returns
Type | Description |
---|---|
System.Boolean | if font present true, else false |