xtd 0.2.0
string_format.h
Go to the documentation of this file.
1 #pragma once
5 #include "../drawing_export.h"
6 #include "text/hotkey_prefix.h"
7 #include "string_alignment.h"
8 #include "string_format_flags.h"
9 #include "string_trimming.h"
10 #include <xtd/object>
11 #include <cstdint>
12 #include <ostream>
13 
15 namespace xtd {
17  namespace drawing {
30  class drawing_export_ string_format final : public xtd::object {
31  public:
33 
41  string_format() = default;
44  string_format(const xtd::drawing::string_format& format) = default;
49 
51 
56  xtd::drawing::string_alignment alignment() const noexcept;
60  xtd::drawing::string_format& alignment(xtd::drawing::string_alignment alignment) noexcept;
61 
64  xtd::drawing::string_format_flags format_flags() const noexcept;
67  xtd::drawing::string_format& format_flags(xtd::drawing::string_format_flags format_flag) noexcept;
68 
79  static xtd::drawing::string_format generic_default() noexcept;
80 
91  static xtd::drawing::string_format generic_typographic() noexcept;
92 
101 
105  xtd::drawing::string_alignment line_alignment() const noexcept;
109  xtd::drawing::string_format& line_alignment(xtd::drawing::string_alignment line_alignment) noexcept;
110 
113  xtd::drawing::string_trimming trimming() const noexcept;
116  xtd::drawing::string_format& trimming(xtd::drawing::string_trimming trimming) noexcept;
118 
119  private:
125  };
126  }
127 }
Specifies the text be aligned near the layout. In a left-to-right layout, the near position is left...
string_trimming
Specifies how to trim characters from a string that does not completely fit into a layout shape...
Definition: string_trimming.h:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
string_alignment
Specifies the alignment of a text string relative to its layout rectangle.
Definition: string_alignment.h:23
Contains xtd::drawing::string_alignment enum class.
Contains xtd::drawing::text::hotkey_prefix enum class.
string_format_flags
Specifies the display and layout information for text strings. This enumeration allows a bitwise comb...
Definition: string_format_flags.h:17
Contains xtd::drawing::string_trimming enum class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
hotkey_prefix
Specifies the type of display for hot-key prefixes that relate to text.
Definition: hotkey_prefix.h:20
Encapsulates text layout information (such as alignment, orientation and tab stops) display manipulat...
Definition: string_format.h:30
Contains xtd::drawing::string_format_flags enum class.