Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Sets the attributes on a range of text, overriding other attributes on that text.
Syntax
HRESULT SetTextAttributes(
ULONG ulCharOffset,
ULONG cChars,
SOURCE_TEXT_ATTR* pstaTextAttr
);
Parameters
ulCharOffset
[in] The location of the start of the text range.
cChars
[in] The number of characters in the range.
pstaTextAttr
[in] The source text attributes for the range of text.
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
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.
See also
IDebugDocumentHelper Interface
IDebugDocumentHelper::AddUnicodeText
IDebugDocumentHelper::AddDBCSText
IDebugDocumentHelper::AddDeferredText
SOURCE_TEXT_ATTR Enumeration