xtd 0.2.0
Loading...
Searching...
No Matches
string format

Definition

string format definitions.

Warning
Internal use only

Variables

constexpr xtd::int32 SF_RIGHT_TO_LEFT
 Text is displayed from right to left. text.
 
constexpr xtd::int32 SF_VERTICAL
 Text is vertically aligned.
 
constexpr xtd::int32 SF_FIT_BLACK_BOX
 Parts of characters are allowed to overhang the string's layout rectangle. By default, characters are repositioned to avoid any overhang.
 
constexpr xtd::int32 SF_DISPLAY_FORMAT_CONTROL
 Control characters such as the left-to-right mark are shown in the output with a representative glyph.
 
constexpr xtd::int32 SF_NO_FONT_FAILBACK
 Fallback to alternate fonts for characters not supported in the requested font is disabled. Any missing characters are displayed with the fonts missing glyph, usually an open square.
 
constexpr xtd::int32 SF_MEASURE_TRAILING_SPACES
 Includes the trailing space at the end of each line. By default the boundary rectangle returned by the MeasureString method excludes the space at the end of each line. Set this flag to include that space in measurement.
 
constexpr xtd::int32 SF_NO_WRAP
 Text wrapping between lines when formatting within a rectangle is disabled. This flag is implied when a point is passed instead of a rectangle, or when the specified rectangle has a zero line length.
 
constexpr xtd::int32 SF_LINE_LIMIT
 Only entire lines are laid out in the formatting rectangle. By default layout continues until the end of the text, or until no more lines are visible as a result of clipping, whichever comes first. Note that the default settings allow the last line to be partially obscured by a formatting rectangle that is not a whole multiple of the line height. To ensure that only whole lines are seen, specify this value and be careful to provide a formatting rectangle at least as tall as the height of one line.
 
constexpr xtd::int32 SF_NO_CLIP
 Overhanging parts of glyphs, and unwrapped text reaching outside the formatting rectangle are allowed to show. By default all text and glyph parts reaching outside the formatting rectangle are clipped.
 

Variable Documentation

◆ SF_RIGHT_TO_LEFT

constexpr xtd::int32 SF_RIGHT_TO_LEFT
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Text is displayed from right to left. text.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SF_VERTICAL

constexpr xtd::int32 SF_VERTICAL
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Text is vertically aligned.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SF_FIT_BLACK_BOX

constexpr xtd::int32 SF_FIT_BLACK_BOX
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Parts of characters are allowed to overhang the string's layout rectangle. By default, characters are repositioned to avoid any overhang.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SF_DISPLAY_FORMAT_CONTROL

constexpr xtd::int32 SF_DISPLAY_FORMAT_CONTROL
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Control characters such as the left-to-right mark are shown in the output with a representative glyph.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SF_NO_FONT_FAILBACK

constexpr xtd::int32 SF_NO_FONT_FAILBACK
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Fallback to alternate fonts for characters not supported in the requested font is disabled. Any missing characters are displayed with the fonts missing glyph, usually an open square.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SF_MEASURE_TRAILING_SPACES

constexpr xtd::int32 SF_MEASURE_TRAILING_SPACES
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Includes the trailing space at the end of each line. By default the boundary rectangle returned by the MeasureString method excludes the space at the end of each line. Set this flag to include that space in measurement.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SF_NO_WRAP

constexpr xtd::int32 SF_NO_WRAP
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Text wrapping between lines when formatting within a rectangle is disabled. This flag is implied when a point is passed instead of a rectangle, or when the specified rectangle has a zero line length.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SF_LINE_LIMIT

constexpr xtd::int32 SF_LINE_LIMIT
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Only entire lines are laid out in the formatting rectangle. By default layout continues until the end of the text, or until no more lines are visible as a result of clipping, whichever comes first. Note that the default settings allow the last line to be partially obscured by a formatting rectangle that is not a whole multiple of the line height. To ensure that only whole lines are seen, specify this value and be careful to provide a formatting rectangle at least as tall as the height of one line.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SF_NO_CLIP

constexpr xtd::int32 SF_NO_CLIP
constexpr

#include <xtd.drawing.native/include/xtd/drawing/native/string_formats.hpp>

Overhanging parts of glyphs, and unwrapped text reaching outside the formatting rectangle are allowed to show. By default all text and glyph parts reaching outside the formatting rectangle are clipped.

Library
xtd.drawing.native
Remarks
Added specifically for xtd.
Warning
Internal use only