Specifies how an image is positioned within a PictureBox.
[Visual Basic] Public Enum PictureBoxSizeMode [C#] public enum PictureBoxSizeMode [C++] public enum PictureBoxSizeMode
[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.
Use the members of this enumeration to set the value of the SizeMode property of the PictureBox.
Member Name | Description |
---|---|
AutoSize | The PictureBox is sized to fit the size of the image that is displayed. |
CenterImage | The image is displayed in the center if the PictureBox is larger than the image. If the image is larger than the PictureBox, it is placed in the upper-left corner of the PictureBox and clipped if necessary. |
Normal | The image is placed in the top-left corner of the PictureBox. The image is clipped if the PictureBox is to small. |
StretchImage | The image within the PictureBox is stretched or shrunk to fit the current size of the PictureBox. |
Namespace: System.WinForms
Assembly: System.WinForms.dll