예제 #1
0
        /// <summary>
        /// Makes a ChartMovedTextMarker object and appends it to the row
        /// </summary>
        /// <param name="row"></param>
        /// <param name="icol"></param>
        /// <param name="target"></param>
        /// <param name="fPreposed"></param>
        /// <returns></returns>
        internal IConstChartMovedTextMarker MakeMovedTextMarker(IConstChartRow row, int icol,
                                                                IConstChartWordGroup target, bool fPreposed)
        {
            Assert.Less(icol, m_allColumns.Count, "Invalid column index");
            Assert.IsNotNull(target, "Can't make a MovedTextMarker with no target WordGroup");
            var ccmtm = m_mtmFact.Create(row, row.CellsOS.Count, m_allColumns[icol], fPreposed, target);

            return(ccmtm);
        }
예제 #2
0
 /// <summary>
 /// Creates a MovedTextMarker that lives in a row/column combo. This assumes we append this cell to
 /// the row. It doesn't check that you haven't done something silly like tell it to add
 /// to a column previous to where you've already added things in this row.
 /// </summary>
 /// <param name="row">The row to add the cell to</param>
 /// <param name="column">The column to add the cell to</param>
 /// <param name="wordGrp">The WordGroup to point to</param>
 /// <param name="fPreposed"></param>
 private IConstChartMovedTextMarker CreateMTMarker(IConstChartRow row, ICmPossibility column,
                                                   IConstChartWordGroup wordGrp, bool fPreposed)
 {
     return(m_mtMrkrFact.Create(row, row.CellsOS.Count, column, fPreposed, wordGrp));
 }