Class PdfName
Represents a direct PDF name object.
public sealed class PdfName : PdfPrimitive
- Inheritance
-
objectPdfName
- Inherited Members
- Extension Methods
Constructors
- PdfName(Name)
Initializes a new instance of the PdfName class.
- PdfName(string)
Initializes a new instance of the PdfName class. Parameter value always must start with a '/'.
Properties
- Comparer
Gets the comparer for this type.
- Empty
Gets an empty name.
- Name
Gets the underlying Name object.
- Value
Gets the name as a canonical name string.
Methods
- AddSlash(string)
Adds the slash that is needed at the beginning of a PDFName.
- Equals(object?)
Determines whether the specified object is equal to this name.
- FromString(string)
Gets a PdfName from a string. The string must not start with a slash.
- GetHashCode()
Returns the hash code for this instance.
- RemoveSlash(string)
Removes the slash that is needed at the beginning of a PDFName.
- ToString()
Returns the name. The string always begins with a slash.
Operators
- operator ==(PdfName?, string?)
Determines whether the specified name and string are equal.
- operator !=(PdfName?, string?)
Determines whether the specified name and string are not equal.