Method of ITextDocument
Mark lines as protected
TextDocument.ProtectLine(nFirstLine, nCount, bVal);
TextDocument.ProtectLine nFirstLine, nCount, bVal
HRESULT hr = TextDocument.ProtectLine(nFirstLine, nCount, bVal);
ITextDocument