Beispiel #1
0
 /// <summary>
 /// Move next line
 /// </summary>
 public void MoveUp(int count)
 {
     try
     {
         object oUnit  = Word.WdUnits.wdLine;
         object oMove  = Word.WdMovementType.wdMove;
         object oCount = count;
         CurrentSelection.MoveUp(ref oUnit, ref oCount, ref oMove);
     }
     catch (Exception)
     {
     }
 }
Beispiel #2
0
        /// <summary>
        /// Remove background by add new line and delete current line
        /// </summary>
        public void RemoveBackgroundLastParagraph()
        {
            this.WriteNewLine();

            //Move up
            object oUnit  = Word.WdUnits.wdLine;
            object oMove  = Word.WdMovementType.wdMove;
            object oCount = 1;

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

            this.Delete(1);
        }