Skip to content

To identify the formated text of a word document

Kulandai Raj D

Asked Apr 13, 2009, 5:55 AM EDT2 answers
Share
LinkedInX

I have a document where some of the words are colored differently like green, yellow and so on

now i need to identify the no, of words in each color

Pls do help me it is urgent

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    Hmm .. is this done in RichTextBox? I would imagine the foreground color of each word is set differently. You need to go word by word and find the foreground color.
    0
  • 0
    Thanks and actually i need like.....

    Not in rich text box,  i have a MS word document in that i highlight some words with different colors, need to identify
    in a page howmany words are highlighted in green, yellow,etc using C#

    when i choose a word document by open dialogue it should count and and show the result
    0