Exemplo n.º 1
0
        /// <summary>
        /// Move next line
        /// </summary>
        public void MoveDown(int count)
        {
            try
            {
                object oUnit  = Word.WdUnits.wdLine;
                object oMove  = Word.WdMovementType.wdMove;
                object oCount = 1;
                WordDoc.Tables[WordDoc.Tables.Count].Rows[WordDoc.Tables[WordDoc.Tables.Count].Rows.Count].Select();

                CurrentSelection.MoveDown(ref oUnit, ref oCount, ref oMove);

                //object oUnit = Word.WdUnits.wdStory;
                //object oMove = Word.WdMovementType.wdMove;
                //CurrentSelection.EndKey(ref oUnit, ref oMove);
                //CurrentSelection.InsertParagraphAfter();
                //CurrentSelection.EndKey(ref oUnit, ref oMove);
            }
            catch (Exception)
            {
            }
        }