/// <summary> /// Updates the horizontal alignment and the vertical position of a line of markups /// </summary> /// <param name="nFirst"></param> /// <param name="nLast"></param> /// <param name="zElement"></param> /// <param name="listMarkups">List of Markups (all must have Aligns set to true)</param> /// <param name="fVerticalOffset"></param> private static void UpdateLineAlignment(int nFirst, int nLast, bool isLastLine, ProjectLayoutElement zElement, List <MarkupBase> listMarkups, float fVerticalOffset, IEnumerable <MarkupBase> listAllMarkups) { // figure out which processor to use HorizontalStringAlignment eAlignment = zElement.justifiedtext ? HorizontalStringAlignment.Justified : (HorizontalStringAlignment)zElement.GetHorizontalAlignment(); var horizontalAlignmentProcessor = s_dictionaryHorizontalAlignmentProcessors[eAlignment]; // update the alignment of the markups in the line horizontalAlignmentProcessor.UpdateLineAlignment(nFirst, nLast, isLastLine, zElement, listMarkups, fVerticalOffset, listAllMarkups); }
public SubLineAlignmentSet(HorizontalStringAlignment eHorizontalStringAlignment, int nFirstIndex) { HorizontalStringAlignment = eHorizontalStringAlignment; FirstIndex = nFirstIndex; LastIndex = nFirstIndex; }