proportionalimage Alignment property
Return to Introduction  Previous page  Next page
Applies to
acProportionalImage property.  

Declaration
type  
  TacImageAlignment = (iaCenter, iaLeft, iaTop, iaRight, iaBottom, iaTopLeft, iaTopRight, iaBottomLeft, iaBottomRight);  
 
property Alignment: TacImageAlignment;  

Description
The Alignment property controls how the image should be aligned within control (if it's not stretched).  
 
There are possible values for Alignment property of acProportionalImage component:  
ValuesMeanings  
iaCenteraligns the image by center of control;  
iaLeftputs the image to the left side of control and aligns it by center vertically;  
iaTopputs the image to the top side of control and aligns it by center horizontally;  
iaRightputs the image to the right side of control and aligns it by center vertically;  
iaBottomputs the image to the bottom side of control and aligns it by center horizontally;  
iaTopLeftputs the image to top-left corner of control;  
iaTopRightputs the image to top-right corner of control;  
iaBottomLeftputs the image to bottom-left corner of control;  
iaBottomRightputs the image to bottom-right corner of control.  

See also
DrawRect property.