xtd 0.2.0
Loading...
Searching...
No Matches
picture_box_size_mode.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace xtd {
10 namespace forms {
22 normal = 0,
24 stretch_image = 1,
26 auto_size = 2,
28 center_image = 3,
30 zoom = 4,
31 };
32 }
33}
34
38};
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:19
picture_box_size_mode
Specifies how an image is positioned within a picture_box.
Definition picture_box_size_mode.h:20
@ center_image
The image is displayed in the center if the picture_box is larger than the image. If the image is lar...
@ zoom
The size of the image is increased or decreased maintaining the size ratio.
@ 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.
@ normal
The image is placed in the upper-left corner of the picture_box. The image is clipped if it is larger...
@ zoom
The image is enlarged within the control's client rectangle.
@ normal
The default appearance defined by the control class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:36