PdfContentExtensionsTryGetValue Method |
Namespace: SautinSoft.Pdf.ObjectsAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.7.1
Syntaxpublic static bool TryGetValue(
this PdfContentFormat format,
PdfName key,
out PdfBasicObject value
)
<ExtensionAttribute>
Public Shared Function TryGetValue (
format As PdfContentFormat,
key As PdfName,
<OutAttribute> ByRef value As PdfBasicObject
) As Boolean
Parameters
- format PdfContentFormat
- The PdfContentFormat from where to retrieve the graphics state parameter.
- key PdfName
- The key of the graphics state parameter to get.
- value PdfBasicObject
- When this method returns, contains the graphics state parameter value associated with the specifie key, if the key is a valid graphics state parameter key; otherwise, the Null value.
Return Value
Boolean if the graphics state parameter with the specified key is supported; otherwise,
.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
PdfContentFormat. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
See Also