SizeMode Property

Applies To

Bound Object Frame Control, Chart Control, Image Control, Unbound Object Frame Control.

Description

You can use the SizeMode property to specify how to size a picture or other object in a bound object frame, an unbound object frame, or an image control.

Setting

The SizeMode property uses the following settings.

Setting

Description

Visual Basic

Clip

(Default) Displays the object at actual size. If the object is larger than the control, its image is clipped on the right and bottom by the control’s borders.

0

Stretch

Sizes the object to fill the control. This setting may distort the proportions of the object.

1

Zoom

Displays the entire object, resizing it as necessary without distorting the proportions of the object. This setting may leave extra space in the control if the control is resized.

3


You can set the SizeMode property using the property sheet, a macro, or Visual Basic You can also set this property in a control’s default control style.

Tip Use the Clip setting for the fastest display. You can use the Stretch setting for bar graphs and line graphs without concern for size adjustments. The Stretch setting can distort circles and photos.

See Also

Action Property, Resize Event.

Example

See the Action property example.