NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PictureBoxSizeMode Enumeration

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.

Remarks

Use the members of this enumeration to set the value of the SizeMode property of the PictureBox.

Members

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.

Requirements

Namespace: System.WinForms

Assembly: System.WinForms.dll

See Also

System.WinForms Namespace