Exemplo n.º 1
0
			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;
			}
Exemplo n.º 2
0
 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;
 }