Click or drag to resize

PdfResourceManagerT Class

PdfResourceManager is a generic type that is used for defining the base capabilities and implementations of all classes of resource manager. Specific implementations of PdfResourceManager are defined in the PDF Generating toolkit and need not be created by client code. Resources are referred to by a string name. The actual name itself is not important and will not appear directly in any produced PDF. The name is used to distinguish one resource from another. Clients may choose any name they wish as long as different resources of the same type have different names.
Inheritance Hierarchy

Namespace:  Atalasoft.PdfDoc.Generating.ResourceHandling
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: (.NET 4.5.2, x86)
public abstract class PdfResourceManager<T> : IDisposable
where T : PdfResource

Type Parameters

The type of resource that is to be managed, must be a subclass of PdfResource

The PdfResourceManagerT type exposes the following members.

Protected methodPdfResourceManagerT
Initializes a new instance of the PdfResourceManagerT class.
Public propertyItem
Gets the resource with the specified s.
Protected propertyResourceClass
Gets the resource class.
Public propertyCode exampleResourceNames
Gets the resource names for this resource manager.
foreach (string name in globalResources.Images.ResourceNames) {
    Console.WriteLine("resource name: " + name);
Public methodCode exampleAdd(T)
Adds the specified resource with an auto-generated name.
Public methodCode exampleAdd(String, T)
Adds a resource to the resource manager. Throws ArgumentException if a resource with the same name is already present.
Public methodContains
Determines whether or not the resource is present.
Public methodDispose
Disposes all resources contained in this resource manager
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
Protected methodDisposeManagedResources
Disposes the managed resources.
Protected methodDisposeUnmanagedResources
Disposes the unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the PdfResourceManagerT is reclaimed by garbage collection.
(Overrides ObjectFinalize.)
Public methodCode exampleGet
Gets a resource with the given name. Throws an exception if there is no resource present with that name.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge
Merges the set of resources, other, into this ResourceManager using the selector to resolve name conflicts.
Public methodNextName
Returns the next available auto-generated name for this resource.
string name = someResourceManager.NextName();
someResourceManager.Add(name, someResource);
Public methodCode exampleRemove
Removes the resource of the specified name. Throws an ArgumentException if name is not present.
Protected methodResourcesMatch
Compares two resources for equality. Default implementation returns false. Subclasses should override this method
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleTryGet
Tries to get the specified resource.
See Also