ApplicationSettings.GetRasterExportSize method (Visio)
Gets the raster export size.
Syntax
expression.GetRasterExportSize (pSize, pWidth, pHeight, pSizeUnits)
expression An expression that returns an ApplicationSettings object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
pSize | Required | VisRasterExportSize | Out parameter. The raster export size. See Remarks for possible values. |
pWidth | Required | Double | Out parameter. The raster export size width. |
pHeight | Required | Double | Out parameter. The raster export size height. |
pSizeUnits | Required | VisRasterExportSizeUnits | Out parameter. The units used to specify size. See Remarks for possible values. |
Return value
Nothing
Remarks
The pSize parameter must be one of the following VisRasterExportSize constants.
Constant | Value | Description |
---|---|---|
visRasterFitToScreenSize | 0 | Use screen size. |
visRasterFitToPrinterSize | 1 | Use printer size. |
visRasterFitToSourceSize | 2 | Use source size. |
visRasterFitToCustomSize | 3 | Use custom size. |
If pSize is a constant other than visRasterFitToCustomSize, GetRasterExportSize returns null for all other parameters. If pSize is visRasterFitToCustomSize, GetRasterExportSize returns non-null values for all parameters.
The pSizeUnits parameter must be one of the following VisRasterExportSizeUnits constants.
Constant | Value | Description |
---|---|---|
visRasterPixel | 0 | Pixels |
visRasterCm | 1 | Centimeters |
visRasterInch | 2 | Inches |
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.