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. ====== onTextFormat ====== Event of [[:scripting:api:frame-events:start|IFrameEvents]] ===== Description ===== Called when text should be formatted ===== Parameters ===== * [[:scripting:api:text-document:start|ITextDocument]] **pDocument** * [[:scripting:api:range:overview|IRange]] **pRange** * [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bIndent** = VARIANT_FALSE (optional) ==== Return Value ==== * [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **pbResult** ===== Syntax ===== ==== JavaScript ==== <code javascript> Appplication.onTextFormat = function(pRange, bIndent) { return pbResult; }; </code>==== Visual Basic Script ==== <code vb> function onTextFormat(pRange, bIndent) { return pbResult } Appplication.onTextFormat = onTextFormat </code>==== C++ ==== <code cpp> HRESULT CFrameEvents::onTextFormat(ITextDocument* pDocument, IRange* pRange, VARIANT_BOOL bIndent, VARIANT_BOOL* pbResult) { } </code>===== See Also ===== [[:scripting:api:frame-events:start|IFrameEvents]] ~~NOTOC~~