NodeType

Overview

NodeType is an enum in Aspose.Words FOSS for Java.

Specifies the type of a Word document node.

Edition status of its 44 listed members (a property and its accessor methods are listed separately, overloads once): 44 not yet exercised by a verified example.

This enum declares 4 methods for NodeType objects in Java programs. Available methods include: fromName, getName, getValues, toString. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: values.

Values

ValueDescription
ANYIndicates all node types.
DOCUMENTA Document object that, as the root of the document tree, provides access to the entire Word document.
SECTIONA Section object that corresponds to one section in a Word document.
BODYA Body object that contains the main text of a section (main text story).
HEADER_FOOTERA HeaderFooter object that contains text of a particular header or footer inside a section.
TABLEA Table object that represents a table in a Word document.
ROWA row of a table.
CELLA cell of a table row.
PARAGRAPHA paragraph of text.
BOOKMARK_STARTA beginning of a bookmark marker.
BOOKMARK_ENDAn end of a bookmark marker.
EDITABLE_RANGE_STARTA beginning of an editable range.
EDITABLE_RANGE_ENDAn end of an editable range.
MOVE_FROM_RANGE_STARTA beginning of an MoveFrom range.
MOVE_FROM_RANGE_ENDAn end of an MoveFrom range.
MOVE_TO_RANGE_STARTA beginning of an MoveTo range.
MOVE_TO_RANGE_ENDAn end of an MoveTo range.
GROUP_SHAPEA group of shapes, images, OLE objects or other group shapes.
SHAPEA drawing object, such as an OfficeArt shape, image or an OLE object.
COMMENTA comment in a Word document.
FOOTNOTEA footnote or endnote in a Word document.
RUNA run of text.
FIELD_STARTA special character that designates the start of a Word field.
FIELD_SEPARATORA special character that separates the field code from the field result.
FIELD_ENDA special character that designates the end of a Word field.
FORM_FIELDA form field.
SPECIAL_CHARA special character that is not one of the more specific special character types.
SMART_TAGA smart tag around one or more inline structures (runs, images, fields,etc.) within a paragraph
STRUCTURED_DOCUMENT_TAGAllows to define customer-specific information and its means of presentation.
STRUCTURED_DOCUMENT_TAG_RANGE_STARTA start of ranged structured document tag which accepts multi-sections content.
STRUCTURED_DOCUMENT_TAG_RANGE_ENDA end of ranged structured document tag which accepts multi-sections content.
GLOSSARY_DOCUMENTA glossary document within the main document.
BUILDING_BLOCKA building block within a glossary document (e.g. glossary document entry).
COMMENT_RANGE_STARTA marker node that represents the start of a commented range.
COMMENT_RANGE_ENDA marker node that represents the end of a commented range.
OFFICE_MATHAn Office Math object.
SUB_DOCUMENTA subdocument node which is a link to another document.
SYSTEMReserved for internal use by Aspose.Words.
NULLReserved for internal use by Aspose.Words.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of NodeType values.

Methods

SignatureDescription
getName(nodeType: int) → StringReturns JAVA_STYLE string representation of integer NodeType value.
toString(nodeType: int) → StringReturns DotNetStyle string representation of integer NodeType value.
fromName(nodeTypeName: String) → intReturns integer representation by NodeType name.
getValues() → int[]Returns array of NodeType values.

See Also