CssLineBox

TheArtOfDev.HtmlRenderer.Core.Dom

Represents a line of text.

Constructors

CssLineBox(CssBox)

Creates a new LineBox

Properties

LineBottom : double

Get the bottom of this box line (the max bottom of all the words)

LineHeight : double

Get the height of this box line (the max height of all the words)

OwnerBox : CssBox

Gets the owner box

Rectangles : Dictionary<CssBox, RRect>

Gets a List of rectangles that are to be painted on this linebox

RelatedBoxes : List<CssBox>

Gets a list of boxes related with the linebox. To know the words of the box inside this linebox, use the CssBox) method.

Words : List<CssRect>

Gets the words inside the linebox

Methods

AssignRectanglesToBoxes()

Copies the rectangles to their specified box

IsLastSelectedWord(CssRect) : bool

Check if the given word is the last selected word in the line. It can either be the last word in the line or the next word has no selection.

word
the word to check
ReportExistanceOf(CssRect)

Lets the linebox add the word an its box to their lists if necessary.

word
SetBaseLine(RGraphics, CssBox, double)

Sets the baseline of the words of the specified box to certain height

g
Device info
b
box to check words
baseline
baseline
ToString() : string

Returns the words of the linebox

UpdateRectangle(CssBox, double, double, double, double)

Updates the specified rectangle of the specified box.

box
x
y
r
b
WordsOf(CssBox) : List<CssRect>

Return the words of the specified box that live in this linebox

box