Vcl.OleCtnrs.TOleContainer.SizeMode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SizeMode: TSizeMode read FSizeMode write SetSizeMode default smClip;

C++

__property TSizeMode SizeMode = {read=FSizeMode, write=SetSizeMode, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.OleCtnrs.pas
Vcl.OleCtnrs.hpp
Vcl.OleCtnrs TOleContainer

Description

Determines how the OLE object is sized in the OLE container.

Set SizeMode to specify how the OLE object is fit into the client area of the OLE container. The following table gives the possible values :



Value Meaning

smClip

(Default)- Displays the OLE object at its normal size, clipping any parts that don't fit within the container.

smCenter

Displays the OLE object at its normal size, centering it within the container.

smScale

Scales or shrinks the view of the OLE object to fit within the container, by scaling width and height proportionally.

smStretch

Scales or shrinks the view of the OLE object to fill the OLE container, without regard to preserving the proportions of the OLE object.

smAutoSize

Displays the OLE object at its normal size and automatically resizes the container to fit the size of the OLE object.



See Also