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. ====== ProtectLine ====== Method of [[:scripting:api:text-document:start|ITextDocument]] ===== Description ===== Mark lines as protected ===== Parameters ===== * [[scripting:api:data-type:long|long]] **nFirstLine** * [[scripting:api:data-type:long|long]] **nCount** = 1 (optional) * [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bVal** = VARIANT_FALSE (optional) ===== Syntax ===== ==== JavaScript ==== <code javascript> TextDocument.ProtectLine(nFirstLine, nCount, bVal); </code>==== Visual Basic Script ==== <code vb> TextDocument.ProtectLine nFirstLine, nCount, bVal </code>==== C++ ==== <code cpp> HRESULT hr = TextDocument.ProtectLine(nFirstLine, nCount, bVal); </code>===== See Also ===== [[:scripting:api:text-document:start|ITextDocument]] ~~NOTOC~~