xtd 0.2.0
Loading...
Searching...
No Matches
string_trimming.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace 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
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
@ ellipsis_path
The center is removed from trimmed lines and replaced by an ellipsis. The algorithm keeps as much of ...
@ none
Specifies no trimming.
@ ellipsis_character
Specifies that the text is trimmed to the nearest character, and an ellipsis is inserted at the end o...
@ ellipsis_word
Specifies that text is trimmed to the nearest word, and an ellipsis is inserted at the end of a trimm...
@ character
Specifies that the text is trimmed to the nearest character.
@ word
Specifies that text is trimmed to the nearest word.
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
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