Class PdfStructAttributeSet
public sealed class PdfStructAttributeSet : PdfTaggedObject, IDisposable
- Inheritance
-
PdfStructAttributeSet
- Implements
- Inherited Members
Properties
Count
Returns the number of attributes (key-value pairs) in the attribute dictionary.
public int Count { get; }
Property Value
Methods
CountChildren()
Returns the number of attributes (key-value pairs) in the structure element's attribute dictionary.
public int CountChildren()
Returns
GetKeyAt(int)
Gets the key name for the attribute at the given index.
public string? GetKeyAt(int index)
Parameters
index
intZero-based index into the attribute set.
Returns
- string
The key name as a string, or null if unavailable.
GetValue(string)
Attempts to get a named attribute from the dictionary.
public PdfStructAttributeValue? GetValue(string name)
Parameters
name
stringThe attribute key to retrieve.
Returns
- PdfStructAttributeValue
A PdfStructAttributeValue if found; otherwise
null
.
GetValueAt(int)
Gets the attribute value object at the given index.
public PdfStructAttributeValue? GetValueAt(int index)
Parameters
index
intZero-based index of the attribute child.
Returns
- PdfStructAttributeValue
A PdfStructAttributeValue for the child, or null if not found.
TryGetBlobValue()
public byte[]? TryGetBlobValue()
Returns
- byte[]