PdfXmlMetadataStream Class
Represents an XML metadata stream.
public sealed class PdfXmlMetadataStream : PdfObject, IEnumerable<XElement>, IEnumerable
Public NotInheritable Class PdfXmlMetadataStream
Inherits PdfObject
Implements IEnumerable(Of XElement), IEnumerable
- Inheritance:
- PdfXmlMetadataStream
Properties
Count
Gets the number of properties in this PdfXmlMetadataStream.
Property Value
The number of properties in this PdfXmlMetadataStream.
IsValid
Gets a value indicating whether XML of this PdfXmlMetadataStream is valid.
Property Value
true if XML of this PdfXmlMetadataStream is valid; otherwise, false.
Item[XName]
Gets the property with the specified name.
public XElement this[XName name] { get; }
Public ReadOnly Property Item(name As XName) As XElement
Parameters
name
- XName
The fully qualified name of the property.
Property Value
The property with the specified name.
Metadata
A null value because PdfXmlMetadataStream cannot have a metadata of its own.
public override PdfXmlMetadataStream Metadata { get; }
Public Overrides ReadOnly Property Metadata As PdfXmlMetadataStream
Property Value
A null value.
Overrides
See Also
Value
Gets or sets the XML text of the PdfXmlMetadataStream.
Property Value
The XML text of the PdfXmlMetadataStream.
Methods
Add(XElement)
Adds the specified property to this PdfXmlMetadataStream.
Parameters
property
- XElement
The property to add.
Exceptions
property
is null.
Clear()
GetEnumerator()
Returns an enumerator that iterates through the properties of this PdfXmlMetadataStream.
public PdfXmlMetadataStream.PropertyEnumerator GetEnumerator()
Public Function GetEnumerator As PdfXmlMetadataStream.PropertyEnumerator
Returns
A PdfXmlMetadataStream.PropertyEnumerator structure for the PdfXmlMetadataStream.
Remove(XName)
Removes the property with the specified name.
Parameters
name
- XName
The fully qualified name of the property to remove.
Returns
true if the property is successfully found and removed; otherwise, false. This method returns true if property is not found in the PdfXmlMetadataStream.