MarkedContentGroup Class
A marked content section in a PDF page.
Declaration
public class MarkedContentGroup extends PageFragment
Remarks
Marked content associates page content fragments with logical structure information in a tagged PDF document. The MarkedContentGroup class creates a marked content sequence on a page and stores its tag, language, and optional marked content identifier (MCID).
Use this class to group related page fragments and connect them to elements in the document structure tree.
Refer to the following help topic for additional information: Generate and Edit Tagged PDF Documents.
Inherited Members
Inheritance
Constructors
MarkedContentGroup(String tag, String language) Constructor
Initializes a new instance of the MarkedContentGroup class with the specified tag and language.
Declaration
public MarkedContentGroup(String tag, String language)
Parameters
| Name | Type | Description |
|---|---|---|
| tag | String | The marked content tag. |
| language | String | The language of the marked content. |
MarkedContentGroup(String tag) Constructor
Initializes a new instance of the MarkedContentGroup class with the specified tag.
Declaration
public MarkedContentGroup(String tag)
Parameters
| Name | Type | Description |
|---|---|---|
| tag | String | The marked content tag. |
Remarks
The language is set to en-us.
MarkedContentGroup(StructureElementType elementType, String language) Constructor
Initializes a new instance of the MarkedContentGroup class with the specified structure element type and language.
Declaration
public MarkedContentGroup(StructureElementType elementType, String language)
Parameters
| Name | Type | Description |
|---|---|---|
| elementType | StructureElementType | A |
| language | String | The language of the marked content. |
MarkedContentGroup(StructureElementType elementType) Constructor
Initializes a new instance of the MarkedContentGroup class with the specified structure element type.
Declaration
public MarkedContentGroup(StructureElementType elementType)
Parameters
| Name | Type | Description |
|---|---|---|
| elementType | StructureElementType | A |
Remarks
The language is set to en-us.
Methods
getFragments() Method
Returns the collection of page fragments contained in the marked content group.
Declaration
public IFragmentCollection getFragments()
Returns
| Type | Description |
|---|---|
| IFragmentCollection | An |
getLanguage() Method
Returns the language of the marked content group.
Declaration
public String getLanguage()
Returns
| Type | Description |
|---|---|
| String | A string that specifies the language code. |
getTag() Method
Returns the tag associated with the marked content group.
Declaration
public String getTag()
Returns
| Type | Description |
|---|---|
| String | A string that specifies the marked content tag. |
Remarks
The tag identifies the type of marked content and can match a structure element type.
setLanguage(String value) Method
Sets the language of the marked content group.
Declaration
public void setLanguage(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | A string that specifies the language code. |
setTag(String value) Method
Sets the tag associated with the marked content group.
Declaration
public void setTag(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | A string that specifies the marked content tag. |
Remarks
The tag identifies the type of marked content and can match a structure element type.