C# Class XWord.VstoExtensions.ContentProtectionExtension

Extension for protecting Word content with VSTO
显示文件 Open project: xwiki-contrib/xwiki-office

Public Methods

Method Description
eProtectBookMark ( this objDoc, string strBookMark, bool blnProtect ) : Range

Protect BookMark

eProtectDoc ( this objDoc, bool blnProtect ) : void

Protect a Document

eProtectDocClean ( this objDoc, bool blnProtect ) : void

Protect a Document with deleting all editable ranges

eProtectRange ( this objRng, bool blnProtect ) : Range

Protect Range

Method Details

eProtectBookMark() public static method

Protect BookMark
public static eProtectBookMark ( this objDoc, string strBookMark, bool blnProtect ) : Range
objDoc this
strBookMark string
blnProtect bool
return Range

eProtectDoc() public static method

Protect a Document
public static eProtectDoc ( this objDoc, bool blnProtect ) : void
objDoc this
blnProtect bool
return void

eProtectDocClean() public static method

Protect a Document with deleting all editable ranges
public static eProtectDocClean ( this objDoc, bool blnProtect ) : void
objDoc this
blnProtect bool
return void

eProtectRange() public static method

Protect Range
public static eProtectRange ( this objRng, bool blnProtect ) : Range
objRng this
blnProtect bool
return Range