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

See Also

Reference

Bookmark Interface

Microsoft.Office.Tools.Word Namespace