public AdornmentTextRun(LinePart linePart) { adornmentElement = linePart.AdornmentElement; if (linePart.Span.Length != 0 || adornmentElement.Affinity == PositionAffinity.Successor) { BreakBefore = LineBreakCondition.BreakPossible; BreakAfter = LineBreakCondition.BreakRestrained; } else { BreakBefore = LineBreakCondition.BreakRestrained; BreakAfter = LineBreakCondition.BreakPossible; } HasFixedSize = true; Length = linePart.ColumnLength; Properties = linePart.TextRunProperties; }
public AdornmentTextRun(LinePart linePart) { adornmentElement = linePart.AdornmentElement; if (adornmentElement.Affinity == PositionAffinity.Successor) { BreakBefore = LineBreakCondition.BreakPossible; BreakAfter = LineBreakCondition.BreakRestrained; } else { BreakBefore = LineBreakCondition.BreakRestrained; BreakAfter = LineBreakCondition.BreakPossible; } HasFixedSize = true; Length = linePart.ColumnLength; Properties = linePart.TextRunProperties; }