Table of Contents

Class MarkedObject

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

Wrapper that allows to add properties to 'basic building block' objects. Before iText 1.5 every 'basic building block' implemented the MarkupAttributes interface. By setting attributes, you could add markup to the corresponding XML and/or HTML tag. This functionality was hardly used by anyone, so it was removed, and replaced by the MarkedObject functionality.

public class MarkedObject : IElement
Inheritance
MarkedObject
Implements
Derived
Inherited Members

Constructors

MarkedObject()

This constructor is for internal use only.

protected MarkedObject()

MarkedObject(IElement)

Creates a MarkedObject.

public MarkedObject(IElement element)

Parameters

element IElement

Fields

Element

The element that is wrapped in a MarkedObject.

protected IElement Element

Field Value

IElement

markupAttributes

Contains extra markupAttributes

protected Properties markupAttributes

Field Value

Properties

Properties

Chunks

Gets all the chunks in this element.

public virtual IList<Chunk> Chunks { get; }

Property Value

IList<Chunk>

an ArrayList

MarkupAttributes

public virtual Properties MarkupAttributes { get; }

Property Value

Properties

the markupAttributes

Type

Gets the type of the text element.

public virtual int Type { get; }

Property Value

int

a type

Methods

IsContent()

@see com.lowagie.text.Element#isContent() @since iText 2.0.8

public bool IsContent()

Returns

bool

IsNestable()

@see com.lowagie.text.Element#isNestable() @since iText 2.0.8

public bool IsNestable()

Returns

bool

Process(IElementListener)

Processes the element by adding it (or the different parts) to an ElementListener .

public virtual bool Process(IElementListener listener)

Parameters

listener IElementListener

an ElementListener

Returns

bool

true if the element was processed successfully

SetMarkupAttribute(string, string)

public virtual void SetMarkupAttribute(string key, string value)

Parameters

key string
value string