[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.SetBool

SetBool Method

SetBool(IPdfDict, PdfName, bool?, bool?)

Sets the Boolean value associated with the specified key. If the value is null or is equal to defValue, removes the key from the dictionary.

Declaration
public static void SetBool(this IPdfDict dict, PdfName key, bool? value, bool? defValue)
Public Shared Sub SetBool(dict As IPdfDict, key As PdfName, value As Boolean?, defValue As Boolean?)
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

bool? value

The value to set.

bool? defValue

The default value.