DefaultWebOptions.PixelsPerInch 属性

定义

返回或设置网页中图形图像的密度(每英寸的像素数)及表格单元格的密度。 密度设置范围通常为 19 到 480 之间,对于普通的屏幕大小,通常的设置一般为 72、96 和 120。

public:
 property int PixelsPerInch { int get(); void set(int value); };
public int PixelsPerInch { get; set; }
member this.PixelsPerInch : int with get, set
Public Property PixelsPerInch As Integer

属性值

注解

无论何时在 Web 浏览器中查看所保存文档,本属性都可确定指定的网页中相对于文本尺寸的图像以及单元格的大小。 图像或单元格的实际最终尺寸等于原始尺寸(以英寸为单位)乘以每英寸中的像素数。

ScreenSize使用 属性为目标 Web 浏览器设置最佳屏幕大小。

适用于