Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictHolderExt Class / SetName Method
The current PDF dictionary holder.
The key of the value to set or remove.
The value to set.
The default value.

In This Topic
    SetName Method
    In This Topic
    Sets or removes the PDF name value associated with a specified key.

    If the specified value is equal to defValue, the value is removed from the current dictionary. Otherwise (if it is different from the default), the value is set.

    Syntax
    'Declaration
     
    Public Shared Sub SetName( _
       ByVal pdh As IPdfDictHolder, _
       ByVal key As System.String, _
       ByVal value As System.String, _
       ByVal defValue As System.String _
    ) 
    public static void SetName( 
       IPdfDictHolder pdh,
       System.string key,
       System.string value,
       System.string defValue
    )

    Parameters

    pdh
    The current PDF dictionary holder.
    key
    The key of the value to set or remove.
    value
    The value to set.
    defValue
    The default value.
    See Also