Class PdfPageResources
The class provides methods and properties to access the PDF page resources.
Inheritance
System.Object
PdfPageResources
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.EJ.PdfViewer.dll
Syntax
public class PdfPageResources
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 | Description |
---|---|
System.Object |
Resources
Gets the PDF page resources.
Declaration
public Dictionary<string, object> Resources { get; }
Property Value
Type | Description |
---|---|
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 |