Информация об изменениях

Сообщение VBA в OpenXML c# от 20.02.2023 10:24

Изменено 20.02.2023 10:26 dsalodki

VBA в OpenXML c#
помогите переписать, пожалуйста
   Selection.WholeStory
    Selection.Fields.Unlink
Selection.WholeStory

Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .text = "е" & ChrW(776)
        .Replacement.text = "ё"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
VBA в OpenXML c#
помогите переписать, пожалуйста
   Selection.WholeStory
    Selection.Fields.Unlink
Selection.WholeStory

Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .text = "е" & ChrW(776)
        .Replacement.text = "ё"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll

 Selection.Font.Name = "Times New Roman"