xtd 0.2.0
Loading...
Searching...
No Matches
itext_model.h
Go to the documentation of this file.
1
4#pragma once
5#include "shadows.h"
6#include "text_decoration.h"
8#include "white_space.h"
9#include <xtd/drawing/color>
10#include <xtd/drawing/font>
11#include <xtd/drawing/string_format>
12#include <xtd/drawing/system_fonts>
13#include <xtd/forms/content_alignment>
14#include <xtd/interface>
15#include <xtd/string>
16#include <memory>
17
19namespace xtd {
21 namespace forms {
23 namespace style_sheets {
41 public:
43
47 virtual bool auto_ellipsis() const noexcept = 0;
48
51 virtual xtd::forms::content_alignment text_alignment() const noexcept = 0;
52
55 virtual const xtd::drawing::color& color() const noexcept = 0;
56
59 virtual xtd::forms::style_sheets::text_decoration decoration() const noexcept = 0;
60
63 virtual const xtd::drawing::font& font() const noexcept = 0;
64
67 virtual xtd::forms::style_sheets::shadows shadows() const noexcept = 0;
68
71 virtual xtd::forms::style_sheets::text_transformation transformation() const noexcept = 0;
72
75 virtual xtd::forms::style_sheets::white_space white_space() const noexcept = 0;
77
79
83 virtual xtd::drawing::string_format make_string_format() const noexcept = 0;
85 };
86 }
87 }
88}
The text model allows you to specify the alignment, color, decoration, transformation,...
Definition itext_model.h:40
virtual xtd::drawing::string_format make_string_format() const noexcept=0
Gets the string format of the text.
virtual xtd::forms::style_sheets::text_transformation transformation() const noexcept=0
Gets the transformation of the text.
virtual bool auto_ellipsis() const noexcept=0
Gets a value indicating whether the ellipsis character (...) appears at the right edge of the control...
virtual const xtd::drawing::color & color() const noexcept=0
Gets the color is used to add foreground effects to the text.
virtual xtd::forms::content_alignment text_alignment() const noexcept=0
Gets the alignment of the text.
virtual xtd::forms::style_sheets::text_decoration decoration() const noexcept=0
Gets the decoration of the text.
virtual const xtd::drawing::font & font() const noexcept=0
Gets the font of the text.
#define interface_
This keyword is use to represent an interface.
Definition interface.h:58
text_decoration
The xtd::forms::style_sheets::text_decoration enum class is used to set or remove decorations from te...
Definition text_decoration.h:25
white_space
The white_space enum class specifies how white-space inside an element is handled.
Definition white_space.h:23
text_transformation
The xtd::forms::style_sheets::text_transformation enum class is used to specify uppercase and lowerca...
Definition text_transformation.h:24
std::vector< xtd::forms::style_sheets::shadow > shadows
Represents an xtd::forms::style_sheets::shadow array.
Definition shadows.h:24
content_alignment
Specifies alignment of content on the drawing surface.
Definition content_alignment.h:21
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::style_sheets::shadows typedef.
Contains xtd::forms::style_sheets::text_decoration enum class.
Contains xtd::forms::style_sheets::text_transformation enum class.
Contains xtd::forms::style_sheets::white_space enum class.