Returns the text attributes for a block of document text.
Syntax
HRESULT GetScriptTextAttributes(
LPCOLESTR pstrCode,
ULONG uNumCodeChars,
LPCOLESTR pstrDelimiter,
DWORD dwFlags,
SOURCE_TEXT_ATTR *pattr
);
Parameters
- pstrCode
- [in] Address of a string that contains the script block text.
- uNumCodeChars
- [in] Integer that specifies the number of characters in the script block text.
- pstrDelimiter
- [in] Address of a string that contains the text delimiters.
- dwFlags
- [in] Unsigned long integer value that specifies a scriptlet flag.
- pattr
- [in] Address of a buffer that contains the returned attributes.
Return Value
Returns S_OK if successful, or an error code otherwise.