Sets the default attributes to use for text that is not in a script block.
HRESULT SetDefaultTextAttr( SOURCE_TEXT_ATTR staTextAttr );
- staTextAttr
The default source text attributes.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK | The method succeeded. |
Unless the default attributes are changed by this method, the default attributes for text outside a script block is SOURCETEXT_ATTR_NONSOURCE. The user interface can use this information to mark text outside script blocks as read-only.