예제 #1
0
		public HexLinePart(int index, int column, VST.Span span, TextRunProperties textRunProperties) {
			Debug.Assert(!span.IsEmpty);
			Debug.Assert(textRunProperties != null);
			Index = index;
			Column = column;
			Span = span;
			AdornmentElement = null;
			TextRunProperties = textRunProperties;
		}
예제 #2
0
		public HexLinePart(int index, int column, VST.Span span, HexAdornmentElement adornmentElement, TextRunProperties textRunProperties) {
			Debug.Assert(adornmentElement != null);
			Debug.Assert(textRunProperties != null);
			Index = index;
			Column = column;
			Span = span;
			AdornmentElement = adornmentElement;
			TextRunProperties = textRunProperties;
		}
예제 #3
0
 public HexLinePart(int index, int column, VST.Span span, TextRunProperties textRunProperties)
 {
     Debug.Assert(!span.IsEmpty);
     Debug.Assert(textRunProperties != null);
     Index             = index;
     Column            = column;
     Span              = span;
     AdornmentElement  = null;
     TextRunProperties = textRunProperties;
 }
예제 #4
0
 public HexLinePart(int index, int column, VST.Span span, HexAdornmentElement adornmentElement, TextRunProperties textRunProperties)
 {
     Debug.Assert(adornmentElement != null);
     Debug.Assert(textRunProperties != null);
     Index             = index;
     Column            = column;
     Span              = span;
     AdornmentElement  = adornmentElement;
     TextRunProperties = textRunProperties;
 }
예제 #5
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;
			}
예제 #6
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;
 }