Text to be contained within a shape is specified with a <p:txBody> or <xdr:txBody> element, which is a child element of <p:sp> or <xdr:sp>, respectively. Note that it is within the spreadsheetDrawing (prefix 'xdr') or main presentation namespace (prefix p), not in the main drawingML namespace (prefix 'a'). However, its child elements are within the main drawingML namespace.
There are three components of text within a shape, corresponding to the three child elements:
- <a:bodyPr> - the body properties. Shapes - Text - Body Properties.
- <a:lstStyle> - the text list properties, if any. Shapes - Text - List Properties
- <a:p> - one or more text paragraphs. See Shapes - Text - Paragraphs.
Below is an example of a shape with text.