Navigation:  Reference > Form Objects > Common Properties >

Constraints

Print this Topic Previous pageReturn to chapter overviewNext page

 

These work in conjunction with the Anchors property and restrict the maximum or minimum sizes of the object.  The four possible values are:

 

MaxHeight - integer - The maximum height the object can be stretched to.

 

MaxWidth - integer - The maximum width the object can be stretched to.

 

MinHeight - integer - The minimum height the object can be shrunk to.

 

MinWidth - integer - The minimum width the object can be shrunk to.

 

The default values for each option is 0, which means there is no minimum or maximum value.

 

These values can be set during design or runtime.  If you want to change them in your program you would refer to the property value as:  'Constraints.MaxHeight' or 'Constraints.MaxWidth', etc.

 


Page url: http://www.cassoftware.com/tas/manual/constraints.htm