Indicates how the PictureBox control will fit the image and control with each other. By default, the Image is placed in the upper left of the PictureBoxes client area, and any part of the image too big for the PictureBox is clipped. Alternatively the image can be stretched to fit the client area, or the control can be sized to always fit the image, or the image can be centered in the client area. Valid values for this property are taken from the PictureBoxSizeMode enumeration.
[Visual Basic] Public Property SizeMode As PictureBoxSizeMode [C#] public PictureBoxSizeMode SizeMode {get; set;} [C++] public: __property PictureBoxSizeMode get_SizeMode(); public: __property void set_SizeMode(PictureBoxSizeMode); [JScript] public function get SizeMode() : PictureBoxSizeMode; public function set SizeMode(PictureBoxSizeMode);
PictureBox Class | PictureBox Members | System.WinForms Namespace | PictureBoxSizeMode