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
Fields
AttributeAliases
This is the Map that contains the aliases of the attributes.
protected Properties AttributeAliases
Field Value
AttributeValues
This is the Map that contains the default values of the attributes.
protected Properties AttributeValues
Field Value
CustomTagname
This is the name of the alias.
protected string CustomTagname
Field Value
DefaultContent
This is String that contains the default content of the attributes.
protected string DefaultContent
Field Value
Tagname
This is the name of the alias.
protected string Tagname
Field Value
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
AddValue(string, string)
Sets a value for an attribute.
public void AddValue(string name, string value)
Parameters
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
GetName(string)
Returns the iText attribute name.
public string GetName(string name)
Parameters
name
stringthe custom attribute name
Returns
- string
the iText attribute name