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!

PictureBox.SizeMode

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);

See Also

PictureBox Class | PictureBox Members | System.WinForms Namespace | PictureBoxSizeMode