Table of Contents

Method GetValue

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

GetValue(string, VCF, Type?)

Gets the value for the specified key. If the value does not exist, it is optionally created. If the value is a PDF reference the referenced object is returned, except the itemType is set to PdfReference.

public PdfItem? GetValue(string key, VCF options = VCF.None, Type? valueType = null)

Parameters

key string
options VCF
valueType Type

Returns

PdfItem

GetValue<T>(string, VCF)

public T? GetValue<T>(string key, VCF options = VCF.None) where T : PdfItem

Parameters

key string
options VCF

Returns

T

Type Parameters

T