public class StructuredDocumentTagCollection
extends java.lang.Object
implements java.lang.Iterable
IStructuredDocumentTag instances that represent the structured document tags in the specified range.
To learn more, visit the Structured Document Tags or Content Control documentation article.
| Modifier and Type | Method and Description |
|---|---|
IStructuredDocumentTag |
get(int index)
Returns the structured document tag at the specified index.
|
IStructuredDocumentTag |
getById(int id)
Returns the structured document tag by identifier.
|
IStructuredDocumentTag |
getByTag(java.lang.String tag)
Returns the first structured document tag encountered in the collection with the specified tag.
|
IStructuredDocumentTag |
getByTitle(java.lang.String title)
Returns the first structured document tag encountered in the collection with the specified title.
|
int |
getCount()
Returns the number of structured document tags in the collection.
|
java.util.Iterator |
iterator()
Returns an enumerator object.
|
void |
remove(int id)
Removes the structured document tag with the specified identifier.
|
void |
removeAt(int index)
Removes a structured document tag at the specified index.
|
public IStructuredDocumentTag getById(int id)
Returns null if the structured document tag with the specified identifier cannot be found.
id - The structured document tag identifier.public IStructuredDocumentTag getByTitle(java.lang.String title)
Returns null if the structured document tag with the specified title cannot be found.
title - The title of structured document tag.public IStructuredDocumentTag getByTag(java.lang.String tag)
Returns null if the structured document tag with the specified tag cannot be found.
tag - The tag of the structured document tag.public void remove(int id)
id - The structured document tag identifier.public void removeAt(int index)
index - An index into the collection.public int getCount()
public IStructuredDocumentTag get(int index)
index - An index into the collection.public java.util.Iterator iterator()
iterator in interface java.lang.Iterable