Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
BUILT-IN WOLFRAM LANGUAGE SYMBOL

TextElement

TextElement[text,props]
represents an element of text with the specified properties.

TextElement[{elem1,elem2,},props]
represents text formed from a sequence of elements.

TextElement[elems]
represents text where no properties are specified.

DetailsDetails

  • TextElement is displayed in a notebook with property information shown underneath.
  • Properties are given in an association. The first value in the association is typically used in displaying the text element.
  • Typical keys in the props association include:
  • "GrammaticalUnit"part of speech or type of phrase

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

TextElement for the noun "boat":

In[1]:=
Click for copyable input
Out[1]=

Create a list of TextElement representing words:

In[2]:=
Click for copyable input
Out[2]=

Wrap this list as a "GrammaticalUnit" entity into another TextElement:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 2015
(10.3)