This documentation is archived and is not being maintained.

GetRasterExportSize Method

Office 2010

Gets the raster export size.

Version Added: Visio 2010

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

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

Show: