GetRasterExportResolution 方法 (Visio) ApplicationSettingsApplicationSettings.GetRasterExportResolution method (Visio)

返回光栅导出分辨率设置。Returns the raster export resolution settings.

语法Syntax

表达式GetRasterExportResolution(pResolutionpWidthpHeightpResolutionUnits)expression.GetRasterExportResolution (pResolution, pWidth, pHeight, pResolutionUnits)

_表达式_一个返回**ApplicationSettings** 对象的表达式。expression An expression that returns an ApplicationSettings object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
pResolutionpResolution 必需Required VisRasterExportResolutionVisRasterExportResolution out 参数。Out parameter. 光栅导出分辨率。The raster export resolution. 有关可能值,请参见备注。See Remarks for possible values.
pWidthpWidth 必需Required DoubleDouble out 参数。Out parameter. 光栅导出分辨率宽度。The raster export resolution width.
pHeightpHeight 必需Required DoubleDouble out 参数。Out parameter. 光栅导出分辨率高度。The raster export resolution height.
pResolutionUnitspResolutionUnits 必需Required VisRasterExportResolutionUnitsVisRasterExportResolutionUnits Out 参数。Out parameter. 用于指定分辨率的单位。The units used to specify resolution. 有关可能的值,请参阅“说明”。See Remarks for possible values.

返回值Return value

NothingNothing

注解Remarks

_PResolution_参数必须为下列VisRasterExportResolution常量之一。The pResolution parameter must be one of the following VisRasterExportResolution constants.

常量Constant Value 说明Description
visRasterUseScreenResolutionvisRasterUseScreenResolution 00 使用屏幕分辨率。Use screen resolution.
visRasterUsePrinterResolutionvisRasterUsePrinterResolution 11 使用打印机分辨率。Use printer resolution.
visRasterUseSourceResolutionvisRasterUseSourceResolution 双面2 使用源分辨率。Use source resolution.
visRasterUseCustomResolutionvisRasterUseCustomResolution 第三章3 使用自定义分辨率。Use custom resolution.

如果 pResolution 是除 visRasterUseCustomResolution 之外的常量,则 GetRasterExportResolution 将对所有其他参数返回 null。If pResolution is a constant other than visRasterUseCustomResolution, GetRasterExportResolution returns null for all other parameters. 如果_pResolution_为visRasterUseCustomResolution, 则对于所有参数, GetRasterExportResolution将返回非 null 值。If pResolution is visRasterUseCustomResolution, GetRasterExportResolution returns non-null values for all parameters.

_PResolutionUnits_参数必须为下列VisRasterExportResolutionUnits常量之一。The pResolutionUnits parameter must be one of the following VisRasterExportResolutionUnits constants.

常量Constant Value 说明Description
visRasterPixelsPerInchvisRasterPixelsPerInch 00 每英寸像素数。Pixels per inch.
visRasterPixelsPerCmvisRasterPixelsPerCm 11 每厘米像素数。Pixels per centimeter.

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.