[英]How to get the size (width and height) of the area with excel vsto c# excluding the ribbon area?
How to get the size (width and height) of the area with excel vsto c#, excluding the ribbon area? 如何使用excel vsto c#获取区域的大小(宽度和高度),不包括功能区? This is the area shown with red marker below: 这是下面用红色标记显示的区域:
This code should work, 该代码应该有效,
Dim ws As Excel.Worksheet = Globals.ThisAddIn.Application.ActiveSheet
Dim _with1 = ws.PageSetup
sngWidth = _with1.Application.Width
sngHeight = _with1.Application.Height
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.