Bookmark.Calculate Method
Calculates a mathematical expression within a Bookmark control.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Function Calculate As Single
float Calculate()
Return Value
Type: System.Single
The result of the calculation of the mathematical expression within a Bookmark control.
Remarks
If the Bookmark control contains errors, this method displays the Spelling and Grammar dialog box, with the Check grammar check box selected.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.