Encapsulates text layout information (such as alignment, orientation and tab stops) display manipulations (such as ellipsis insertion and national digit substitution) and OpenType features. This class cannot be inherited.
Constructors | |
string_format ()=default | |
Initializes a new string_format object. More... | |
string_format (const xtd::drawing::string_format &format)=default | |
Initializes a new string_format object from the specified existing string_format object. More... | |
string_format (xtd::drawing::string_format_flags options) | |
Initializes a new string_format object with the specified string_format_flags enumeration. More... | |
Properties | |
xtd::drawing::string_alignment | alignment () const noexcept |
Gets horizontal alignment of the string. More... | |
xtd::drawing::string_format & | alignment (xtd::drawing::string_alignment alignment) noexcept |
Sets horizontal alignment of the string. More... | |
xtd::drawing::string_format_flags | format_flags () const noexcept |
Gets a string_formatFlags enumeration that contains formatting information. More... | |
xtd::drawing::string_format & | format_flags (xtd::drawing::string_format_flags format_flag) noexcept |
Sets a string_formatFlags enumeration that contains formatting information. More... | |
xtd::drawing::text::hotkey_prefix | hotkey_prefix () const noexcept |
Gets the HotkeyPrefix object for this string_format object. More... | |
xtd::drawing::string_format & | hotkey_prefix (xtd::drawing::text::hotkey_prefix hotkey_prefix) noexcept |
Sets the HotkeyPrefix object for this string_format object. More... | |
xtd::drawing::string_alignment | line_alignment () const noexcept |
Gets vertical alignment of the string. More... | |
xtd::drawing::string_format & | line_alignment (xtd::drawing::string_alignment line_alignment) noexcept |
Sets vertical alignment of the string. More... | |
xtd::drawing::string_trimming | trimming () const noexcept |
Gets the string_trimming enumeration for this string_format object. More... | |
xtd::drawing::string_format & | trimming (xtd::drawing::string_trimming trimming) noexcept |
Sets the string_trimming enumeration for this string_format object. More... | |
static xtd::drawing::string_format | generic_default () noexcept |
Gets a generic default string_format object. More... | |
static xtd::drawing::string_format | generic_typographic () noexcept |
Gets a generic typographic string_format object. More... | |
Additional Inherited Members | |
![]() | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
Creates a shallow copy of the current object. More... | |
virtual xtd::ustring | to_string () const noexcept |
Returns a sxd::ustring that represents the current object. More... | |
![]() | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
|
default |
Initializes a new string_format object.
property | initial value |
---|---|
format_flag | 0 |
hotkey_prefix | none |
|
default |
Initializes a new string_format object from the specified existing string_format object.
format | The string_format object from which to initialize the new string_format object. |
|
explicit |
Initializes a new string_format object with the specified string_format_flags enumeration.
options | The StringFormatFlags enumeration for the new StringFormat object. |
|
noexcept |
Gets horizontal alignment of the string.
|
noexcept |
Sets horizontal alignment of the string.
alignment | A string_alignment enumeration that specifies the horizontal alignment of the string. |
|
noexcept |
Gets a string_formatFlags enumeration that contains formatting information.
|
noexcept |
Sets a string_formatFlags enumeration that contains formatting information.
format_flag | A string_formatFlags enumeration that contains formatting information. |
|
staticnoexcept |
Gets a generic default string_format object.
property | initial value |
---|---|
format_flag | 0 |
alignment | near |
line_alignment | near |
hotkey_prefix | none |
trimming | character |
|
staticnoexcept |
Gets a generic typographic string_format object.
property | initial value |
---|---|
format_flag | 0b110000000000100 (no_clip|fit_black_box|line_limit) |
alignment | near |
line_alignment | near |
hotkey_prefix | none |
trimming | none |
|
noexcept |
Gets the HotkeyPrefix object for this string_format object.
|
noexcept |
Sets the HotkeyPrefix object for this string_format object.
hotkey_prefix | The hotkey_prefix object for this string_format object, the default is hotkey_prefix::none. |
|
noexcept |
Gets vertical alignment of the string.
|
noexcept |
Sets vertical alignment of the string.
alignment | A string_alignment enumeration that specifies the vertical alignment of the string. |
|
noexcept |
Gets the string_trimming enumeration for this string_format object.
|
noexcept |
Sets the string_trimming enumeration for this string_format object.
trimming | A string_trimming enumeration that indicates how text drawn with this string_format object is trimmed when it exceeds the edges of the layout rectangle. |