xtd 0.2.0
Loading...
Searching...
No Matches

◆ picture_box_size_mode

Specifies how an image is positioned within a picture_box.

Header
#include <xtd/forms/picture_box_size_mode>
Namespace
xtd::forms
Library
xtd.forms
Remarks
Use the members of this enumeration to set the value of the size_mode property of the picture_box.
Enumerator
normal 

The image is placed in the upper-left corner of the picture_box. The image is clipped if it is larger than the picture_box it is contained in.

stretch_image 

The image within the picture_box is stretched or shrunk to fit the size of the picture_box.

auto_size 

The picture_box is sized equal to the size of the image that it contains.

center_image 

The image is displayed in the center if the picture_box is larger than the image. If the image is larger than the picture_box, the picture is placed in the center of the picture_box and the outside edges are clipped.

zoom 

The size of the image is increased or decreased maintaining the size ratio.