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
)
Public Function TryGet (
name As String,
<OutAttribute> ByRef value As T
) As Boolean
Parameters
- name
- Type: SystemString
The name of the resource to get. - value
- Type: T
The resource retrieved.
Return Value
Type:
Booleantrue 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