RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.SizeMode Property

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

Pascal
property SizeMode: TSizeMode;
C++
__property TSizeMode SizeMode;

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!