Read-only. Returns an instance of the TextBlock object that contains parameters of the text block, assigned by default to the text of every new shape created in the document.
Applies to: Document object
[[Set] textBlockRet =] object.DefTextBlock |
The DefTextBlock property syntax has these parts:
Part | Description |
object | Required. An expression that returns a Document object. |
textBlockRet | Optional. A TextBlock type variable. |
The DefTextBlock property contains parameters describing a text block, which are applied by default to the text of new shapes created in the document. Note, that new shapes don't contain text, that is, they don't contain any instances of the TextBlock object, which describes the text block parameters. So, this property will be applied to the shape at the moment text is assigned to the shape, provided the shape didn't contain any text before. That is, when text is added to the shape, a text block, fully identical to the DefTextBlock text block and containing all text assigned to the shape is added to the paragraph collection of the shape.
To set default parameters to the sequence of characters and paragraph for the new shapes created in the document, use the DefCharacter and DefParagraph properties respectively.
See Also |
DefCharacter property, DefParagraph property, TextBlock object, Shape object |