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/ustring>
16#include <memory>
17
19namespace xtd {
21 namespace forms {
23 namespace style_sheets {
39 public:
41
45 virtual bool auto_ellipsis() const noexcept = 0;
46
49 virtual xtd::forms::content_alignment text_alignment() const noexcept = 0;
50
53 virtual const xtd::drawing::color& color() const noexcept = 0;
54
57 virtual xtd::forms::style_sheets::text_decoration decoration() const noexcept = 0;
58
61 virtual const xtd::drawing::font& font() const noexcept = 0;
62
65 virtual xtd::forms::style_sheets::shadows shadows() const noexcept = 0;
66
69 virtual xtd::forms::style_sheets::text_transformation transformation() const noexcept = 0;
70
73 virtual xtd::forms::style_sheets::white_space white_space() const noexcept = 0;
75
77
81 virtual xtd::drawing::string_format make_string_format() const noexcept = 0;
83 };
84 }
85 }
86}
The text model allows you to specify the alignment, color, decoration, transformation,...
Definition itext_model.h:38
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:23
white_space
The white_space enum class specifies how white-space inside an element is handled.
Definition white_space.h:21
text_transformation
The xtd::forms::style_sheets::text_transformation enum class is used to specify uppercase and lowerca...
Definition text_transformation.h:22
std::vector< xtd::forms::style_sheets::shadow > shadows
Represents an xtd::forms::style_sheets::shadow array.
Definition shadows.h:22
content_alignment
Specifies alignment of content on the drawing surface.
Definition content_alignment.h:19
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.