====== AdoptIndent ====== Method of [[:scripting:api:text-document:start|ITextDocument]] ===== Description ===== Adopts indentation of selected range to fit desired level ===== Parameters ===== * [[:scripting:api:range:overview|IRange]] **pRange** ==== Return Value ==== * [[:scripting:api:range:overview|IRange]] **ppResult** ===== Syntax ===== ==== JavaScript ==== var ppResult = TextDocument.AdoptIndent(pRange); ==== Visual Basic Script ==== ppResult = TextDocument.AdoptIndent pRange ==== C++ ==== CComPtr pResult; HRESULT hr = TextDocument.AdoptIndent(pRange, &pResult); ===== See Also ===== [[:scripting:api:text-document:start|ITextDocument]] ~~NOTOC~~