Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== AddStyleRange ====== Method of [[:scripting:api:text-document:start|ITextDocument]] ===== Description ===== Add Style Range ===== Parameters ===== * [[:scripting:api:range:overview|IRange]] **pRange** * [[:scripting:api:style:start|IStyle]] **pStyle** * [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bMerge** = VARIANT_FALSE (optional) ==== Return Value ==== * [[:scripting:api:style-range:start|IStyleRange]] **ppStyleRange** ===== Syntax ===== ==== JavaScript ==== <code javascript> var ppStyleRange = TextDocument.AddStyleRange(pRange, pStyle, bMerge); </code>==== Visual Basic Script ==== <code vb> ppStyleRange = TextDocument.AddStyleRange pRange, pStyle, bMerge </code>==== C++ ==== <code cpp> CComPtr<IStyleRange> pStyleRange; HRESULT hr = TextDocument.AddStyleRange(pRange, pStyle, bMerge, &pStyleRange); </code>===== See Also ===== [[:scripting:api:text-document:start|ITextDocument]] ~~NOTOC~~