Exemple #1
0
 public LinePart(int column, Span span, TextRunProperties textRunProperties)
 {
     this.Column            = column;
     this.Span              = span;
     this.AdornmentElement  = null;
     this.TextRunProperties = textRunProperties;
 }
Exemple #2
0
 public LinePart(int column, Span span, IAdornmentElement adornmentElement)
 {
     this.Column            = column;
     this.Span              = span;
     this.AdornmentElement  = adornmentElement;
     this.TextRunProperties = null;
 }
Exemple #3
0
		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;
		}
Exemple #4
0
		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;
		}
Exemple #5
0
 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;
 }
Exemple #6
0
 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 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 #8
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;
 }