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
SystemObject
  Atalasoft.PdfDoc.Generating.ResourceHandlingPdfResourceManagerT
    Atalasoft.PdfDoc.Generating.ResourceHandling.ColorsPdfColorSpaceManager
    Atalasoft.PdfDoc.Generating.ResourceHandling.FontsPdfFontManager
    Atalasoft.PdfDoc.Generating.ResourceHandling.ImagesPdfImageManager
    Atalasoft.PdfDoc.Generating.ResourceHandling.TemplatesPdfTemplateManager

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

Type Parameters

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

The PdfResourceManagerT type exposes the following members.

Constructors
  NameDescription
Protected methodPdfResourceManagerT
Initializes a new instance of the PdfResourceManagerT class.
Top
Properties
  NameDescription
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.
Examples
foreach (string name in globalResources.Images.ResourceNames) {
    Console.WriteLine("resource name: " + name);
}
Top
Methods
  NameDescription
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
Protected methodThrowIfDisposed
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleTryGet
Tries to get the specified resource.
Top
See Also