====== 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 ====
TextDocument.ProtectLine(nFirstLine, nCount, bVal);
==== Visual Basic Script ====
TextDocument.ProtectLine nFirstLine, nCount, bVal
==== C++ ====
HRESULT hr = TextDocument.ProtectLine(nFirstLine, nCount, bVal);
===== See Also =====
[[:scripting:api:text-document:start|ITextDocument]]
~~NOTOC~~