Namespace: PdfSharp.Pdf
Represents a PDF name value.
public sealed class PdfName : PdfItem, System.ICloneable
Inheritance Object → PdfItem → PdfName
Implements ICloneable
Represents the empty name.
public static PdfName Empty;
Gets the name as a string.
public string Value { get; }
Gets the comparer for this type.
public static PdfXNameComparer Comparer { get; }
Initializes a new instance of the PdfName class.
public PdfName()
Initializes a new instance of the PdfName class. Parameter value always must start with a ‘/’.
public PdfName(string value)
value
String
Determines whether the specified object is equal to this name.
public bool Equals(object obj)
obj
Object
Returns the hash code for this instance.
public int GetHashCode()
Returns the name. The string always begins with a slash.
public string ToString()
Adds the slash to a string, that is needed at the beginning of a PDFName string.
public static string AddSlash(string value)
value
String
Removes the slash from a string, that is needed at the beginning of a PDFName string.
public static string RemoveSlash(string value)
value
String
Writes the name including the leading slash.
internal void WriteObject(PdfWriter writer)
writer
PdfWriter