public HexLinePart(int index, int column, VST.Span span, TextRunProperties textRunProperties) { Debug.Assert(!span.IsEmpty); Debug.Assert(textRunProperties != null); Index = index; Column = column; Span = span; AdornmentElement = null; TextRunProperties = textRunProperties; }
public HexLinePart(int index, int column, VST.Span span, HexAdornmentElement adornmentElement, TextRunProperties textRunProperties) { Debug.Assert(adornmentElement != null); Debug.Assert(textRunProperties != null); Index = index; Column = column; Span = span; AdornmentElement = adornmentElement; TextRunProperties = textRunProperties; }
public AdornmentTextRun(HexLinePart linePart) { adornmentElement = linePart.AdornmentElement; if (linePart.Span.Length != 0 || adornmentElement.Affinity == VST.PositionAffinity.Successor) { BreakBefore = LineBreakCondition.BreakPossible; BreakAfter = LineBreakCondition.BreakRestrained; } else { BreakBefore = LineBreakCondition.BreakRestrained; BreakAfter = LineBreakCondition.BreakPossible; } HasFixedSize = true; Length = linePart.ColumnLength; Properties = linePart.TextRunProperties; }