PDFsharp-net6

CName

Namespace: PdfSharp.Pdf.Content.Objects

Represents a name in a PDF content stream.

public class CName : CObject, System.ICloneable

Inheritance ObjectCObjectCName
Implements ICloneable

Properties

Name

Gets or sets the name. Names must start with a slash.

public string Name { get; set; }

Property Value

String

Constructors

CName()

Initializes a new instance of the CName class.

public CName()

CName(String)

Initializes a new instance of the CName class.

public CName(string name)

Parameters

name String
The name.

Methods

Clone()

Creates a new object that is a copy of the current instance.

public CName Clone()

Returns

CName

Copy()

Implements the copy mechanism of this class.

protected CObject Copy()

Returns

CObject

ToString()

Returns a string that represents the current value.

public string ToString()

Returns

String

WriteObject(ContentWriter)

internal void WriteObject(ContentWriter writer)

Parameters

writer ContentWriter