[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetName

TryGetName Method

TryGetName(IPdfDict, PdfName, out string)

Tries to get the PDF Name value associated with the specified key. If the value does not exist or cannot be converted to a PDF Name, returns false.

Declaration
public static bool TryGetName(this IPdfDict dict, PdfName key, out string value)
Public Shared Function TryGetName(dict As IPdfDict, key As PdfName, ByRef value As String) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

string value

OUT. When this method returns, contains the PDF Name value.

Returns
Type Description
bool

true if value exists; otherwise, false.