public LinePart(int column, Span span, TextRunProperties textRunProperties) { this.Column = column; this.Span = span; this.AdornmentElement = null; this.TextRunProperties = textRunProperties; }
public LinePart(int column, Span span, IAdornmentElement adornmentElement) { this.Column = column; this.Span = span; this.AdornmentElement = adornmentElement; this.TextRunProperties = null; }
public LinePart(int index, int column, Span span, TextRunProperties textRunProperties) { Debug.Assert(!span.IsEmpty); Debug.Assert(textRunProperties != null); Index = index; Column = column; Span = span; AdornmentElement = null; TextRunProperties = textRunProperties; }
public LinePart(int index, int column, Span span, IAdornmentElement adornmentElement, TextRunProperties textRunProperties) { Debug.Assert(adornmentElement != null); Debug.Assert(textRunProperties != null); Index = index; Column = column; Span = span; AdornmentElement = adornmentElement; TextRunProperties = textRunProperties; }
public LinePart(int index, int column, Span span, TextRunProperties textRunProperties) { Debug.Assert(!span.IsEmpty); Debug.Assert(textRunProperties != null); this.Index = index; this.Column = column; this.Span = span; this.AdornmentElement = null; this.TextRunProperties = textRunProperties; }
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; }