C# Class LayoutFarm.HtmlBoxes.CssLineBox

Represents a line of text.
To learn more about line-boxes see CSS spec: http://www.w3.org/TR/CSS21/visuren.html
Mostrar archivo Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
dbugId int

Private Properties

Property Type Description
AddRun void
CalculateLineHeight float
CanDoMoreLeftOffset bool
CloseLine void
DoLeftOffset void
FindMaxWidthRun CssRun
GetFirstRun CssRun
GetLastRun CssRun
GetRightOfLastRun float
GetRun CssRun
GetRunIter IEnumerable
GetRunIter IEnumerable
OffsetTop void
PaintBackgroundAndBorder void
PaintDecoration void
PaintRuns void
RegisterStripPart void
SetBaseLine void
StepUpRegisterStrips int
dbugPaintRuns void

Public Methods

Method Description
ApplyBaseline ( float baseline ) : void
CalculateTotalBoxBaseLine ( LayoutVisitor lay ) : float
CssLineBox ( CssBox ownerBox ) : System

Creates a new LineBox

GetAreaStripTopPosIter ( ) : IEnumerable
HitTest ( float x, float y ) : bool
ToString ( ) : string

Returns the words of the linebox

Private Methods

Method Description
AddRun ( CssRun run ) : void

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

CalculateLineHeight ( ) : float
CanDoMoreLeftOffset ( float newOffset, float rightLimit ) : bool
CloseLine ( LayoutVisitor lay ) : void
DoLeftOffset ( float diff ) : void
FindMaxWidthRun ( float minimum ) : CssRun
GetFirstRun ( ) : CssRun
GetLastRun ( ) : CssRun
GetRightOfLastRun ( ) : float
GetRun ( int index ) : CssRun
GetRunIter ( ) : IEnumerable
GetRunIter ( CssBox box ) : IEnumerable
OffsetTop ( float ydiff ) : void
PaintBackgroundAndBorder ( PaintVisitor p ) : void
PaintDecoration ( PaintVisitor p ) : void
PaintRuns ( PaintVisitor p ) : void
RegisterStripPart ( CssBox runOwner, float left, float top, float right, float bottom, List newStrips, PartialBoxStrip>.Dictionary dic ) : void
SetBaseLine ( CssBox stripOwnerBox, float baseline ) : void

Gets the baseline Height of the rectangle

StepUpRegisterStrips ( PartialBoxStrip>.Dictionary dicStrips, CssBox lineOwnerBox, List inputList, int startInputAt ) : int
dbugPaintRuns ( PaintVisitor p ) : void

Method Details

ApplyBaseline() public method

public ApplyBaseline ( float baseline ) : void
baseline float
return void

CalculateTotalBoxBaseLine() public method

public CalculateTotalBoxBaseLine ( LayoutVisitor lay ) : float
lay LayoutVisitor
return float

CssLineBox() public method

Creates a new LineBox
public CssLineBox ( CssBox ownerBox ) : System
ownerBox CssBox
return System

GetAreaStripTopPosIter() public method

public GetAreaStripTopPosIter ( ) : IEnumerable
return IEnumerable

HitTest() public method

public HitTest ( float x, float y ) : bool
x float
y float
return bool

ToString() public method

Returns the words of the linebox
public ToString ( ) : string
return string

Property Details

dbugId public_oe property

public int dbugId
return int