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;
			}
Exemple #2
0
 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;
 }