xtd 0.2.0
string_format.hpp
Go to the documentation of this file.
1
4#pragma once
9#include "string_trimming.hpp"
10#include <xtd/object>
11#include <cstdint>
12#include <ostream>
13
15namespace xtd {
17 namespace drawing {
31 public:
33
41 string_format() = default;
49
51
61
68
77
86
89 xtd::drawing::string_trimming trimming() const noexcept;
94
96
109
122
123 private:
125 xtd::drawing::string_format_flags format_flags_ = static_cast<xtd::drawing::string_format_flags>(0);
129 };
130 }
131}
Encapsulates text layout information (such as alignment, orientation and tab stops) display manipulat...
Definition string_format.hpp:30
xtd::drawing::text::hotkey_prefix hotkey_prefix() const noexcept
Gets the HotkeyPrefix object for this string_format object.
xtd::drawing::string_format_flags format_flags() const noexcept
Gets a string_formatFlags enumeration that contains formatting information.
xtd::drawing::string_alignment line_alignment() const noexcept
Gets vertical alignment of the string.
static xtd::drawing::string_format generic_default() noexcept
Gets a generic default string_format object.
string_format()=default
Initializes a new string_format object.
string_format(xtd::drawing::string_format_flags options)
Initializes a new string_format object with the specified string_format_flags enumeration.
string_format(const xtd::drawing::string_format &format)=default
Initializes a new string_format object from the specified existing string_format object.
xtd::drawing::string_trimming trimming() const noexcept
Gets the string_trimming enumeration for this string_format object.
xtd::drawing::string_alignment alignment() const noexcept
Gets horizontal alignment of the string.
static xtd::drawing::string_format generic_typographic() noexcept
Gets a generic typographic string_format object.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains drawing_export_ keyword.
xtd::string format(const xtd::string &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition format.hpp:20
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
string_trimming
Specifies how to trim characters from a string that does not completely fit into a layout shape.
Definition string_trimming.hpp:17
string_format_flags
Specifies the display and layout information for text strings. This enumeration allows a bitwise comb...
Definition string_format_flags.hpp:17
string_alignment
Specifies the alignment of a text string relative to its layout rectangle.
Definition string_alignment.hpp:23
@ none
Specifies no trimming.
Definition string_trimming.hpp:19
@ 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
Contains xtd::drawing::text::hotkey_prefix enum class.
The xtd::drawing::text namespace provides advanced GDI+ typography functionality.
Definition font_collection.hpp:14
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::drawing::string_alignment enum class.
Contains xtd::drawing::string_format_flags enum class.
Contains xtd::drawing::string_trimming enum class.