C# Class SIL.FieldWorks.SharpViews.Paragraphs.ParaLine

This class represents one line in a paragraph. It is not itself a box, but merely a way of organizing the boxes of the paragraph.
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
Add void
ArrangeBoxes void
BoxBefore Box
GetDirectionDepth int
OrderedBoxes IEnumerable
RemoveFrom void
ReverseUpstreamBoxes void
SetWeakDirections void

Private Methods

Method Description
Add ( Box box ) : void
ArrangeBoxes ( FwTextAlign align, int gapLeft, int gapRight, int firstLineIndent, int availWidth, int topDepth ) : void
BoxBefore ( Box target ) : Box
GetDirectionDepth ( Box box, int topDepth ) : int
OrderedBoxes ( int topDepth ) : IEnumerable

Return the boxes in the order they should be laid out across the line.

RemoveFrom ( Box firstToRemove ) : void
ReverseUpstreamBoxes ( int nDepth, List boxes, int topDepth ) : void

Find in boxes any sequences of boxes whose direction depth is nDepth or more. Reverse the boxes in each such sequence.

SetWeakDirections ( int topDepth ) : void

Adjust the direction of any weak-direction boxes to match the shallowest adjacent non-weak-direction box. The start and end of the paragraph count as having the depth specified by the topDepth argument. So do any non-string boxes.