Class PdfName
Represents a PDF name value.
public sealed class PdfName : PdfItem, ICloneable
- Inheritance
-
PdfName
- Implements
- Inherited Members
Constructors
PdfName()
Initializes a new instance of the PdfName class.
public PdfName()
PdfName(string)
Initializes a new instance of the PdfName class. Parameter value always must start with a '/'.
public PdfName(string value)
Parameters
value
string
Fields
Empty
Represents the empty name.
public static readonly PdfName Empty
Field Value
Properties
Comparer
Gets the comparer for this type.
public static PdfName.PdfXNameComparer Comparer { get; }
Property Value
Value
Gets the name as a string.
public string Value { get; }
Property Value
Methods
AddSlash(string)
Adds the slash to a string, that is needed at the beginning of a PDFName string.
public static string AddSlash(string value)
Parameters
value
string
Returns
Equals(object?)
Determines whether the specified object is equal to this name.
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
RemoveSlash(string)
Removes the slash from a string, that is needed at the beginning of a PDFName string.
public static string RemoveSlash(string value)
Parameters
value
string
Returns
ToString()
Returns the name. The string always begins with a slash.
public override string ToString()
Returns
Operators
operator ==(PdfName?, string?)
Determines whether the specified name and string are equal.
public static bool operator ==(PdfName? name, string? str)
Parameters
Returns
operator !=(PdfName?, string?)
Determines whether the specified name and string are not equal.
public static bool operator !=(PdfName? name, string? str)