Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Signature
C#
C#
public int GroupCount{ get; }
Signature
vb.net
vb.net
<p>PublicPublic ReadOnly Property GroupCount() As Integer</p>Integer
Example
 
Code Block
csharp
csharp
titleC#
          WordApplication app = new WordApplication();
          Document doc = app.Open(@"C:\somedoc.doc");
          IEnumerator searcherator = doc.Search("\s\d\d\d-?\d\d-?\d\d\d\d\s");
          while (searcherator.MoveNext())
          {
               SearchMatch match = (SearchMatch)searcherator.Current;
               int numMatchGroups = match.GroupCount;
               match.Element.Delete();
          }
        

...