TextDocumentData Class — NXOpen Python API Reference 12.0.0 documentation

# TextDocumentData Class

class `NXOpen.OpenXml.``TextDocumentData`

  Bases: `NXOpen.OpenXml.DocumentData`

  Represents the text to be exported to the speific Open XML file.

  New in version NX11.0.0.

# Methods

Method | Description
--- | ---
Dispose | Frees the object from memory.
GetContent | Gets the content to be exported of text data
GetDataType | Gets a specified document data type
SetContent | Sets the content to be exported of text data

# Method Detail

## Dispose

`TextDocumentData.``Dispose`

  Frees the object from memory.

  After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

  Signature `Dispose()`

  New in version NX11.0.0.

  License requirements: None.

## GetContent

`TextDocumentData.``GetContent`

  Gets the content to be exported of text data

  Signature `GetContent()`

  Returns: |
  Return type: | str

  New in version NX11.0.0.

  License requirements: None.

## SetContent

`TextDocumentData.``SetContent`

  Sets the content to be exported of text data

  Signature `SetContent(content)`

  Parameters: | content (str) –

  New in version NX11.0.0.

  License requirements: None.