Click or drag to resize

PdfResourceManagerTTryGet Method

Tries to get the specified resource.

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 bool TryGet(
	string name,
	out T value
)

Parameters

name
Type: SystemString
The name of the resource to get.
value
Type: T
The resource retrieved.

Return Value

Type: Boolean
true if name is present; falseotherwise.
Examples
PdfFontResource font = null;
if (!globalResources.Fonts.TryGet("headingfont", out font))
    throw new Exception("unable to get heading font");
See Also