AddComputed (Method)

Applies To:

Columns collection

Description:

Creates a computed column in a Table or Results section.

Syntax:

Expression.AddComputed(Name As String,
Expression As String) As Column

Expression Required:

An expression that returns an object for Columns

Example:

This example illustrates how to create a computed column that concatenates the “Manager =” string with the value in the Store_Manager column:

var ComputedExpression = " \"Manager =\" + Store_Manager"
ActiveDocument.Sections["Results"].Columns.AddComputed("MyComputed", ComputedExpression)