Function TParagraph.IsParProtected(value:Integer) : TParagraph
Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph
Parameters
-
value:Integer
Returns
The type of the result value is TParagraph.
Description
Shortcut funtion to protect or unprotect a paragraph. Since a reference to the paragraph is returned, it is possible to write it in a nested assignment.
Par.AppendPropertyGrid(wpLevelUp, 'Address','', [wpapShaded])
.AppendPropertyGrid(wpNested, 'Name')
.AppendPropertyGrid(wpSameLevel, 'Str')
.AppendPropertyGrid(wpSameLevel, 'City')
.AppendPropertyGrid(wpLevelUp, 'Contact','', [wpapShaded]).IsParProtected
.AppendPropertyGrid(wpNested, 'Telefone').IsParProtected
.AppendPropertyRow('private')
.AppendPropertyRow('mobile').SetProperty(WPAT_CharStyleON,WPSTY_BOLD).SetText('123456789')
.AppendPropertyGrid(wpSameLevel, 'E-Mail').IsParProtected
.AppendPropertyRow('private')
.AppendPropertyRow('business')
;