XFINIUM.PDF Documentation
GetKeyValueAsBool(PdfCosName,Boolean) Method



Xfinium.Pdf.Core.Cos Namespace > PdfCosDictionary Class : GetKeyValueAsBool(PdfCosName,Boolean) Method
Key to return.
Default value to return if the key does not exist.
Gets the value of the specified key as a boolean.
Syntax
'Declaration
 
Public Function GetKeyValueAsBool( _
   ByVal key As PdfCosName, _
   ByVal defaultValue As Boolean _
) As Boolean
'Usage
 
Dim instance As PdfCosDictionary
Dim key As PdfCosName
Dim defaultValue As Boolean
Dim value As Boolean
 
value = instance.GetKeyValueAsBool(key, defaultValue)
public bool GetKeyValueAsBool( 
   PdfCosName key,
   bool defaultValue
)
public:
bool GetKeyValueAsBool( 
   PdfCosName^ key,
   bool defaultValue
) 

Parameters

key
Key to return.
defaultValue
Default value to return if the key does not exist.

Return Value

The key value
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PdfCosDictionary Class
PdfCosDictionary Members