xtd - Reference Guide 0.2.0
string_trimming.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum.h>
6 
8 namespace xtd {
10  namespace drawing {
17  enum class string_trimming {
19  none = 0,
21  character = 1,
23  word = 2,
27  ellipsis_word = 4,
29  ellipsis_path = 5,
30  };
31  }
32 }
33 
35 template<> struct xtd::enum_register<xtd::drawing::string_trimming> {
37 };
string_trimming
Specifies how to trim characters from a string that does not completely fit into a layout shape...
Definition: string_trimming.h:17
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:12
The center is removed from trimmed lines and replaced by an ellipsis. The algorithm keeps as much of ...
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies that text is trimmed to the nearest word, and an ellipsis is inserted at the end of a trimm...
Contains xtd::enum_object.
Specifies that the text is trimmed to the nearest character, and an ellipsis is inserted at the end o...
Specifies that text is trimmed to the nearest word.
Specifies that the text is trimmed to the nearest character.
Provides the registration struct for enumerations.
Definition: enum_register.h:30