PeachDrawing.Text
PeachDrawing.Text.Layout.InlineBox
InlineBox(double, double, Nullable<double>, VerticalAlign, double, object) Constructor
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 InlineBox(double Width, double Height, System.Nullable<double> Baseline=null, PeachDrawing.Text.Layout.VerticalAlign VerticalAlign=PeachDrawing.Text.Layout.VerticalAlign.Baseline, double BaselineShift=0.0, object? Tag=null);
Parameters
Width System.Double
The width of the box, in layout units; from zero to 1,000,000,000.
Height System.Double
The height of the box, in layout units; from zero to 1,000,000,000.
Baseline System.Nullable<System.Double>
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.
VerticalAlign VerticalAlign
How the box sits on the line.
BaselineShift System.Double
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.
Tag System.Object
Anything the caller wants back with the placed box: InlineBox carries this value.