如何获得excel vsto c#区域的大小(宽度和高度),不包括色带区域?

如何获得excel vsto c#的区域的大小(宽度和高度),不包括色带区域? 这是以下红色标记显示的区域:

在这里输入图像说明

这个代码应该工作,

Dim ws As Excel.Worksheet = Globals.ThisAddIn.Application.ActiveSheet Dim _with1 = ws.PageSetup sngWidth = _with1.Application.Width sngHeight = _with1.Application.Height