ListObject::TotalsRowRange Property
Gets a Range that represents the Total row of the ListObject control.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Property Value
Type: Microsoft.Office.Interop.Excel::Range^A Range that represents the Total row of the ListObject control.
This property returns a Range only if the Total row is showing in the ListObject control. If the Total row is not showing, it returns null.
The following code example creates a DataTable and a ListObject, and binds the ListObject to the DataTable. It then gets the range that contains the Total row and changes the Total row font to italic.
This example is for a document-level customization.
Show: