[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.SetStringArray

SetStringArray Method

SetStringArray(IPdfDict, PdfName, IEnumerable<string>, bool)

Sets or removes the PDF string array associated with a specified key.

If the specified value is null, the value is removed from the current dictionary. Otherwise the value is set.

Declaration
public static void SetStringArray(this IPdfDict dict, PdfName key, IEnumerable<string> value, bool singleToArray = true)
Public Shared Sub SetStringArray(dict As IPdfDict, key As PdfName, value As IEnumerable(Of String), Optional singleToArray As Boolean = True)
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

IEnumerable<string> value

The value to set.

bool singleToArray

If true and value contains exactly one element, the array will be stored as a simple PDF string object.