Show / Hide Table of Contents

Class ContentItem

Content items are graphical objects that exist in the document independently of the structure tree but are associated with structure elements.

Content items are leaf nodes of the structure tree.

Inheritance
object
ContentItem
Implements
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.MemberwiseClone()
Namespace: pdftron.PDF.Struct
Assembly: PDFNet.dll
Syntax
public class ContentItem : IDisposable

Methods

Dispose()

Releases all resources used by the ContentItem

Declaration
public override sealed void Dispose()

Dispose(bool)

Declaration
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)
Parameters
Type Name Description
bool A_0

~ContentItem()

Declaration
protected ~ContentItem()

GetContainingStm()

Gets the containing stm.

Declaration
public Obj GetContainingStm()
Returns
Type Description
Obj

The stream object that contains the marked-content sequence. The function will return a non-NULL object only if the marked-content sequence resides in a content stream other than the content stream for the page (e.g. in a form XObject).

Remarks

this method only applies to content items with type e_MCR.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetMCID()

Gets the MCID.

Declaration
public int GetMCID()
Returns
Type Description
int

mcid (marked-content identifier).

Remarks

this method only applies to content items with types e_MCR or e_MCID.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetPage()

The page on which the marked content is drawn, whether directly as part of page content or indirectly by being in a Form XObject or annotation drawn on that page.

Declaration
public Page GetPage()
Returns
Type Description
Page

the page

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetParent()

Find the parent structure element

Declaration
public SElement GetParent()
Returns
Type Description
SElement

parent structure element

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetRefObj()

Gets the ref obj.

Declaration
public Obj GetRefObj()
Returns
Type Description
Obj

The referenced object.

Remarks

this method only applies to content items with type e_OBJR.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetSDFObj()

Gets the SDFObj.

Declaration
public Obj GetSDFObj()
Returns
Type Description
Obj

Pointer to the underlying SDF/Cos object.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetStmOwner()

Gets the stm owner.

Declaration
public Obj GetStmOwner()
Returns
Type Description
Obj

NULL or the PDF object owning the stream returned by GetContainingStm() (e.g. the annotation to which an appearance stream belongs).

Remarks

this method only applies to content items with type e_MCR.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

GetType()

Gets the type.

Declaration
public ContentItem.Type GetType()
Returns
Type Description
ContentItem.Type

the content item type.

Exceptions
Type Condition
PDFNetException

PDFNetException the PDFNet exception

Implements

IDisposable
In This Article
Back to top Generated by DocFX