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:
- System.ObjectPdfXmlMetadataStream
Implements
Properties
Count
Gets the number of properties in this PdfXmlMetadataStream.
Property Value
- System.Int32
The number of properties in this PdfXmlMetadataStream.
IsValid
Gets a value indicating whether XML of this PdfXmlMetadataStream is valid.
Property Value
- System.Boolean
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
- System.Xml.Linq.XName
The fully qualified name of the property.
Property Value
- System.Xml.Linq.XElement
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
- System.String
The XML text of the PdfXmlMetadataStream.
Methods
Add(XElement)
Adds the specified property to this PdfXmlMetadataStream.
Parameters
property
- System.Xml.Linq.XElement
The property to add.
Exceptions
- System.ArgumentNullException
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
- System.Xml.Linq.XName
The fully qualified name of the property to remove.
Returns
- System.Boolean
true if the property is successfully found and removed; otherwise, false. This method returns true if property is not found in the PdfXmlMetadataStream.