PreserveAspectRatio Property

Structured Graphics Control

Sets whether the graphic should scale proportionally.

Syntax

HTML<PARAM NAME="PreserveAspectRatio" VALUE="0 | -1">
ScriptingstructgraphObj.PreserveAspectRatio=fFalse

Possible Values

object
Name of the structured graphics object, as defined in PARAM tag syntax.
0 | -1 , fFalse
Boolean flag that sets whether the aspect ratio should be preserved. Default is False.

Remarks

This property is effective only if ExtentTop, ExtentLeft, ExtentWidth and ExtentHeight properties are set. If you set the shape's width and height as a percentage of the page width and height (as one of the STYLE attributes of the OBJECT tag), set PreserveAspectRatio to True. When the user resizes the browser window, the shape will scale itself proportionally based on the smaller of the window's new width or height values. If you set PreserveAspectRatio to False, the shape will scale itself relative to the window's new width and height.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.