Table of Contents

Class XmlPeer

Namespace
iTextSharp.text.xml
Assembly
iTextSharp.LGPLv2.Core.dll

This interface is implemented by the peer of all the iText objects.

public class XmlPeer
Inheritance
XmlPeer
Derived
Inherited Members

Constructors

XmlPeer(string, string)

Creates a XmlPeer.

public XmlPeer(string name, string alias)

Parameters

name string
alias string

Fields

AttributeAliases

This is the Map that contains the aliases of the attributes.

protected Properties AttributeAliases

Field Value

Properties

AttributeValues

This is the Map that contains the default values of the attributes.

protected Properties AttributeValues

Field Value

Properties

CustomTagname

This is the name of the alias.

protected string CustomTagname

Field Value

string

DefaultContent

This is String that contains the default content of the attributes.

protected string DefaultContent

Field Value

string

Tagname

This is the name of the alias.

protected string Tagname

Field Value

string

Properties

Alias

Gets the alias of the peer.

public string Alias { get; }

Property Value

string

the alias of the peer

Content

Sets the default content.

public string Content { set; }

Property Value

string

the default content

DefaultValues

Returns the default values.

public Properties DefaultValues { get; }

Property Value

Properties

the default values

Tag

Gets the tagname of the peer.

public string Tag { get; }

Property Value

string

the tagname of the peer

Methods

AddAlias(string, string)

Sets an alias for an attribute.

public virtual void AddAlias(string name, string attributeAlias)

Parameters

name string

the iText tagname

attributeAlias string

the custom tagname

AddValue(string, string)

Sets a value for an attribute.

public void AddValue(string name, string value)

Parameters

name string

the iText tagname

value string

the default value for this tag

GetAttributes(INullValueDictionary<string, string>)

Gets the list of attributes of the peer.

public virtual Properties GetAttributes(INullValueDictionary<string, string> attrs)

Parameters

attrs INullValueDictionary<string, string>

Returns

Properties

GetName(string)

Returns the iText attribute name.

public string GetName(string name)

Parameters

name string

the custom attribute name

Returns

string

the iText attribute name