xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
string_alignment.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <xtd/enum>
6
8
#undef far
9
#undef near
11
13
namespace
xtd
{
15
namespace
drawing
{
23
enum class
string_alignment
{
25
near
= 0,
27
center
= 1,
29
far
= 2
30
};
31
}
32
}
33
35
template
<>
struct
xtd::enum_register
<
xtd
::
drawing::string_alignment
> {
36
static
auto
values
()
noexcept
{
return
xtd::enum_collection<xtd::drawing::string_alignment>
{{
xtd::drawing::string_alignment::near
,
"near"
}, {
xtd::drawing::string_alignment::center
,
"center"
}, {
xtd::drawing::string_alignment::far
,
"far"
}};}
37
};
xtd::drawing::string_alignment
string_alignment
Specifies the alignment of a text string relative to its layout rectangle.
Definition
string_alignment.hpp:23
xtd::drawing::string_alignment::far
@ far
Specifies that text is aligned far from the origin position of the layout rectangle....
Definition
string_alignment.hpp:29
xtd::drawing::string_alignment::near
@ near
Specifies the text be aligned near the layout. In a left-to-right layout, the near position is left....
Definition
string_alignment.hpp:25
xtd::drawing::string_alignment::center
@ center
Specifies that text is aligned in the center of the layout rectangle.
Definition
string_alignment.hpp:27
xtd::enum_collection
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition
enum_collection.hpp:24
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.