Bookmark.Calculate Method (2007 System)
Calculates a mathematical expression within a Bookmark control.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Function Calculate As Single
'Usage
Dim instance As Bookmark
Dim returnValue As Single
returnValue = instance.Calculate()
public float Calculate()
public:
float Calculate()
public function Calculate() : float
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.