CssLayoutEngine
Helps on CSS Layout.
Métodos
AdjustAbsolutePosition(CssBox, double, double)
Adjust the position of absolute elements by letf and top margins.
ApplyCellVerticalAlignment(RGraphics, CssBox)
Applies special vertical alignment for table-cells
- g
- cell
ApplyCenterAlignment(RGraphics, CssLineBox)
Applies centered alignment to the text on the linebox
- g
- line
ApplyHorizontalAlignment(RGraphics, CssLineBox)
Applies vertical and horizontal alignment to words in lineboxes
- g
- lineBox
ApplyJustifyAlignment(RGraphics, CssLineBox)
Applies centered alignment to the text on the linebox
- g
- lineBox
ApplyRightAlignment(RGraphics, CssLineBox)
Applies right alignment to the text on the linebox
- g
- line
ApplyRightToLeftOnLine(CssLineBox)
Applies RTL direction to all the words on the line.
- line
- the line to apply RTL to
ApplyRightToLeftOnSingleBox(CssLineBox, CssBox)
Applies RTL direction to specific box words on the line.
- lineBox
- box
BubbleRectangles(CssBox, CssLineBox)
Recursively creates the rectangles of the blockBox, by bubbling from deep to outside of the boxes in the rectangle structure
FlowBox(RGraphics, CssBox, CssBox, double, double, double, CssLineBox, double, double, double, double)
Recursively flows the content of the box using the inline model
- g
- Device Info
- blockbox
- Blockbox that contains the text flow
- box
- Current box to flow its content
- limitRight
- Maximum reached right
- linespacing
- Space to use between rows of text
- startx
- x starting coordinate for when breaking lines of text
- line
- Current linebox being used
- curx
- Current x coordinate that will be the left of the next word
- cury
- Current y coordinate that will be the top of the next word
- maxRight
- Maximum right reached so far
- maxbottom
- Maximum bottom reached so far
MeasureImageSize(CssRectImage)
Measure image box size by the width\height set on the box and the actual rendered image size. If no image exists for the box error icon will be set.
- imageWord
- the image word to measure
ToList``1(IEnumerable<T>)
todo: optimizate, not creating a list each time