Sets the attributes on a range of text, overriding other attributes on that text.
[in] The location of the start of the text range.
[in] The number of characters in the range.
[in] The source text attributes for the range of text.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
The method succeeded.
It is an error to call SetTextAttributes on a text range before that text is added to the document. Call the AddDBCSText, AddUnicodeText, or AddDeferredText methods to add text to the document.