SdtAppearance

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

FieldDescription
BOUNDING_BOXRepresents a structured document tag shown as a shaded rectangle or bounding box.
DEFAULTDefaults to BOUNDING_BOX.
HIDDENRepresents a structured document tag that is not shown.
TAGSRepresents a structured document tag shown as start and end markers.
length

Methods

MethodDescription
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:

ParameterTypeDescription
sdtAppearanceNamejava.lang.String

Returns: int

getName(int sdtAppearance)

public static String getName(int sdtAppearance)

Parameters:

ParameterTypeDescription
sdtAppearanceint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int sdtAppearance)

public static String toString(int sdtAppearance)

Parameters:

ParameterTypeDescription
sdtAppearanceint

Returns: java.lang.String