Skip to main content
adicionou 3 caracteres ao conteúdo
Fonte Link
stderr
  • 30,9mil
  • 5
  • 49
  • 76

A sintaxe do método Find.ExecuteFind.Execute é:

bool Execute(
    ref Object FindText,
    ref Object MatchCase,
    ref Object MatchWholeWord,
    ref Object MatchWildcards,
    ref Object MatchSoundsLike,
    ref Object MatchAllWordForms,
    ref Object Forward,
    ref Object Wrap,
    ref Object Format,
    ref Object ReplaceWith,
    ref Object Replace,
    ref Object MatchKashida,
    ref Object MatchDiacritics,
    ref Object MatchAlefHamza,
    ref Object MatchControl
)

No parâmetro replace, especifique a constante wdReplaceAll:

object replace = WdReplace.wdReplaceAll;

//...

oRng.Find.Execute( ref FindText , ref missing,ref MatchWholeWord , 
                   ref missing,ref missing,ref missing,ref Forward,
                   ref missing,ref missing,ref ReplaceWith ,ref replace,
                   ref missing,ref missing,ref missing,ref missing);

A sintaxe do método Find.Execute é:

bool Execute(
    ref Object FindText,
    ref Object MatchCase,
    ref Object MatchWholeWord,
    ref Object MatchWildcards,
    ref Object MatchSoundsLike,
    ref Object MatchAllWordForms,
    ref Object Forward,
    ref Object Wrap,
    ref Object Format,
    ref Object ReplaceWith,
    ref Object Replace,
    ref Object MatchKashida,
    ref Object MatchDiacritics,
    ref Object MatchAlefHamza,
    ref Object MatchControl
)

No parâmetro replace especifique a constante wdReplaceAll:

object replace = WdReplace.wdReplaceAll;

//...

oRng.Find.Execute( ref FindText , ref missing,ref MatchWholeWord , 
                   ref missing,ref missing,ref missing,ref Forward,
                   ref missing,ref missing,ref ReplaceWith ,ref replace,
                   ref missing,ref missing,ref missing,ref missing);

A sintaxe do método Find.Execute é:

bool Execute(
    ref Object FindText,
    ref Object MatchCase,
    ref Object MatchWholeWord,
    ref Object MatchWildcards,
    ref Object MatchSoundsLike,
    ref Object MatchAllWordForms,
    ref Object Forward,
    ref Object Wrap,
    ref Object Format,
    ref Object ReplaceWith,
    ref Object Replace,
    ref Object MatchKashida,
    ref Object MatchDiacritics,
    ref Object MatchAlefHamza,
    ref Object MatchControl
)

No parâmetro replace, especifique a constante wdReplaceAll:

object replace = WdReplace.wdReplaceAll;

//...

oRng.Find.Execute( ref FindText , ref missing,ref MatchWholeWord , 
                   ref missing,ref missing,ref missing,ref Forward,
                   ref missing,ref missing,ref ReplaceWith ,ref replace,
                   ref missing,ref missing,ref missing,ref missing);
Fonte Link
stderr
  • 30,9mil
  • 5
  • 49
  • 76

A sintaxe do método Find.Execute é:

bool Execute(
    ref Object FindText,
    ref Object MatchCase,
    ref Object MatchWholeWord,
    ref Object MatchWildcards,
    ref Object MatchSoundsLike,
    ref Object MatchAllWordForms,
    ref Object Forward,
    ref Object Wrap,
    ref Object Format,
    ref Object ReplaceWith,
    ref Object Replace,
    ref Object MatchKashida,
    ref Object MatchDiacritics,
    ref Object MatchAlefHamza,
    ref Object MatchControl
)

No parâmetro replace especifique a constante wdReplaceAll:

object replace = WdReplace.wdReplaceAll;

//...

oRng.Find.Execute( ref FindText , ref missing,ref MatchWholeWord , 
                   ref missing,ref missing,ref missing,ref Forward,
                   ref missing,ref missing,ref ReplaceWith ,ref replace,
                   ref missing,ref missing,ref missing,ref missing);