Beispiel #1
0
        /// <summary>
        /// Finds the next redaction mark in current document story range (e.g. the current text box).
        /// </summary>
        /// <param name="CurrentRange">The range containing the starting point of the search. Changes to the location of the output mark if one is found.</param>
        /// <returns>True if a mark was found, otherwise False.</returns>
        private static bool FindNextMarkInCurrentStoryRange(ref Word.Range CurrentRange)
        {
            object Missing = Type.Missing;

            Word.Find FindScope = CurrentRange.Find;
            FindScope.Font.Shading.BackgroundPatternColor = ShadingColor;

            return(FindScope.ExecuteOld(ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing, ref Missing));
        }