Class PdfNameObject
Represents an indirect name value. This type is not used by PDFsharp. If it is imported from an external PDF file, the value is converted into a direct object. Acrobat sometime uses indirect names to save space, because an indirect reference to a name may be shorter than a long name.
public sealed class PdfNameObject : PdfObject, ICloneable
- Inheritance
-
PdfNameObject
- Implements
- Inherited Members
Constructors
PdfNameObject()
Initializes a new instance of the PdfNameObject class.
public PdfNameObject()
PdfNameObject(PdfDocument, string)
Initializes a new instance of the PdfNameObject class.
public PdfNameObject(PdfDocument document, string value)
Parameters
document
PdfDocumentThe document.
value
stringThe value.
Properties
Value
Gets or sets the name value.
public string Value { get; set; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
Serves as a hash function for this type.
public override int GetHashCode()
Returns
ToString()
Returns the name. The string always begins with a slash.
public override string ToString()
Returns
Operators
operator ==(PdfNameObject?, string?)
Determines whether a name is equal to a string.
public static bool operator ==(PdfNameObject? name, string? str)
Parameters
name
PdfNameObjectstr
string
Returns
operator !=(PdfNameObject?, string?)
Determines whether a name is not equal to a string.
public static bool operator !=(PdfNameObject? name, string? str)
Parameters
name
PdfNameObjectstr
string