SdtAppearance
Contents
[
Hide
]Inheritance: java.lang.Object
public class SdtAppearance
Specifies the appearance of a structured document tag.
Examples:
Shows how to show tag around content.
Document doc = new Document(getMyDir() + "Multi-section structured document tags.docx");
StructuredDocumentTagRangeStart tag = (StructuredDocumentTagRangeStart) doc.getChild(NodeType.STRUCTURED_DOCUMENT_TAG_RANGE_START, 0, true);
if (tag.getAppearance() == SdtAppearance.HIDDEN)
tag.setAppearance(SdtAppearance.TAGS);
Fields
Field | Description |
---|---|
BOUNDING_BOX | Represents a structured document tag shown as a shaded rectangle or bounding box. |
DEFAULT | Defaults to BOUNDING_BOX. |
HIDDEN | Represents a structured document tag that is not shown. |
TAGS | Represents a structured document tag shown as start and end markers. |
length |
Methods
Method | Description |
---|---|
fromName(String sdtAppearanceName) | |
getName(int sdtAppearance) | |
getValues() | |
toString(int sdtAppearance) |
BOUNDING_BOX
public static int BOUNDING_BOX
Represents a structured document tag shown as a shaded rectangle or bounding box.
DEFAULT
public static int DEFAULT
Defaults to BOUNDING_BOX.
HIDDEN
public static int HIDDEN
Represents a structured document tag that is not shown.
TAGS
public static int TAGS
Represents a structured document tag shown as start and end markers.
length
public static int length
fromName(String sdtAppearanceName)
public static int fromName(String sdtAppearanceName)
Parameters:
Parameter | Type | Description |
---|---|---|
sdtAppearanceName | java.lang.String |
Returns: int
getName(int sdtAppearance)
public static String getName(int sdtAppearance)
Parameters:
Parameter | Type | Description |
---|---|---|
sdtAppearance | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int sdtAppearance)
public static String toString(int sdtAppearance)
Parameters:
Parameter | Type | Description |
---|---|---|
sdtAppearance | int |
Returns: java.lang.String