[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetAtPath

TryGetAtPath Method

TryGetAtPath<T>(IPdfDict, out T, out bool, bool, params object[])

Gets the value at the specified path. The path can contain IPdfName objects which are interpreted as dictionary keys, or integers which are interpreted as IPdfArray indices.

Declaration
public static bool TryGetAtPath<T>(IPdfDict dict, out T value, out bool isNull, bool addWarning, params object[] path) where T : IPdfObject
Public Shared Function TryGetAtPath(Of T As IPdfObject)(dict As IPdfDict, ByRef value As T, ByRef isNull As Boolean, addWarning As Boolean, ParamArray path As Object()) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

T value

OUT: The value.

bool isNull

OUT: Indicates whether the value is PDF null.

bool addWarning

Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur.

object[] path

The path to the value.

Returns
Type Description
bool

The value associated with the specified path, or null if the value could not be found.

Type Parameters
Name Description
T