Table of contents
TOC
Collapse the table of content
Expand the table of content

ApplicationSettings.SetRasterExportSize Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Sets the raster export size.

Syntax

expression . SetRasterExportSize( size , [Width] , [Height] , [sizeUnits] )

expression An expression that returns an ApplicationSettings object.

Parameters

NameRequired/OptionalData TypeDescription
sizeRequiredVisRasterExportSizeThe raster export size. See Remarks for possible values.
WidthOptionalDoubleThe raster export size width. Must be greater than or equal to 1.
HeightOptionalDoubleThe raster export size height. Must be greater than or equal to 1.
sizeUnitsOptionalVisRasterExportSizeUnitsThe units used to specify size. See Remarks for possible values.
sizeRequiredVISRASTEREXPORTSIZE
WidthOptionalDOUBLE
HeightOptionalDOUBLE
sizeUnitsOptionalVISRASTEREXPORTSIZEUNITS
NameRequired/OptionalData typeDescription

Return Value

Nothing

Remarks

The size parameter must be one of the following VisRasterExportSize constants.

ConstantValueDescription
visRasterFitToScreenSize0Use screen size.
visRasterFitToPrinterSize1Use printer size.
visRasterFitToSourceSize2Use source size.
visRasterFitToCustomSize3Use custom size.

If size is anything other than visRasterFitToCustomSize , SetRasterExportSize ignores all other parameters.

If size is visRasterFitToCustomSize , SetRasterExportSize accepts values for all parameters, if they meet the noted constraints. If they do not meet these constraints, SetRasterExportSize returns an Invalid Parameter error.

The sizeUnits parameter must be one of the following VisRasterExportSizeUnits constants.

ConstantValueDescription
visRasterPixel0Pixels
visRasterCm1Centimeters
visRasterInch2Inches

When the SetRasterExportSize method runs successfully, the resulting settings will remain in effect until you either run the method again or change the settings in the user interface.

© 2018 Microsoft