Click or drag to resize

PdfResourceManagerTAdd Method (String, T)

Adds a resource to the resource manager. Throws ArgumentException if a resource with the same name is already present.

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 void Add(
	string name,
	T resource
)

Parameters

name
Type: SystemString
The name of the resource to add.
resource
Type: T
The resource that will be added.
Examples
globalResources.Fonts.Add("times", PdfFontResource.FromFontName(globalResources.Fonts, "Times New Roman"));
See Also