PeachDrawing.Text
PeachDrawing.Text.Layout
InlineBox Struct
A box of a known size set in a paragraph like a single character (CSS: an atomic inline, such as an image or an inline block): it is never broken, takes part in line breaking with a break allowed before and after it (even next to a character that would suppress one, but not next to a joiner), and makes its line as tall as it needs. The paragraph’s text holds a U+FFFC (object replacement character) for it.
public readonly record struct InlineBox : System.IEquatable<PeachDrawing.Text.Layout.InlineBox>
Implements System.IEquatable<InlineBox>
| Constructors | |
|---|---|
| InlineBox(double, double, Nullable<double>, VerticalAlign, double, object) | A box of a known size set in a paragraph like a single character (CSS: an atomic inline, such as an image or an inline block): it is never broken, takes part in line breaking with a break allowed before and after it (even next to a character that would suppress one, but not next to a joiner), and makes its line as tall as it needs. The paragraph’s text holds a U+FFFC (object replacement character) for it. |
| Properties | |
|---|---|
| Baseline | The distance from the top of the box to its baseline, or null for its bottom edge (what CSS uses for an image); at most 1,000,000,000 either way. |
| BaselineShift | How far the box is raised above where VerticalAlign puts it (lowered when negative), as a length, at most 1,000,000,000 either way. It has no effect on Top and Bottom. |
| Height | The height of the box, in layout units; from zero to 1,000,000,000. |
| Tag | Anything the caller wants back with the placed box: InlineBox carries this value. |
| VerticalAlign | How the box sits on the line. |
| Width | The width of the box, in layout units; from zero to 1,000,000,000. |