bool Button.ClipImage;
Gets/sets whether the button clips its image to the button boundaries.
For example, if the button is sized 30x30, but its Graphic is a 50x50 image, then
this property controls whether the image is allowed to spill over the edge of the button.
The default is false, ie. the image is not clipped.
Setting this to true can be useful in that it ensures that the button's image is not larger
than the button's clickable area, which can cause confusion when it happens.
Example:
btnOK.ClipImage = true;
sets the btnOK button so that its image will be restrained to the button's clickable area.
See Also: Button.Graphic
|