Share via


IDebugDocumentHelper::SetDefaultTextAttr

Sets the default attributes to use for text that is not in a script block.

Syntax

HRESULT SetDefaultTextAttr(  
   SOURCE_TEXT_ATTR  staTextAttr  
);  

Parameters

staTextAttr
The default source text attributes.

Return Value

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.

Remarks

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.

See also

IDebugDocumentHelper Interface
SOURCE_TEXT_ATTR Enumeration