Reference Guide
GdPicture14 Namespace / GdViewer Class / GetTextOccurrenceCount Method





In This Topic
    GetTextOccurrenceCount Method (GdViewer)
    In This Topic
    Searches for an occurrence of a given text expression within the specified page of the document displayed in the GdViewer control according to the parameters you have specified. You can select either the Ordinal or the InvariantCulture comparison when searching.
    Overload List
    OverloadDescription
    Searches for an occurrence of a given text expression within the specified page of the document displayed in the GdViewer control according to the parameters you have specified. If the format of the displayed document is other than supported text-based formats, which currently are DOCX, TXT, RTF and PDF, the method will fail.

    Please note that this method uses InvariantCulture comparison when searching. It means, that characters are comparing using culture-sensitive sort rules and the invariant culture, in other words this method respects accents when searching.

     
    Searches for an occurrence of a given text expression within the specified page of the document displayed in the GdViewer control according to the parameters you have specified. If the format of the displayed document is other than supported text-based formats, which currently are DOCX, TXT, RTF and PDF, the method will fail.

    You can benefit from selecting the comparison option using this method, in other words, you can search respecting accents or not in the given text expression.

     
    See Also