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