How to identify the background colour of a sentence in a word document

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Malvika Shrivastava
    New Member
    • Jun 2010
    • 10

    #1

    How to identify the background colour of a sentence in a word document

    Hi,

    I have a word document in which I have a sentence which is inclosed by an outer border and the inner part is filled with some colour.

    Now i have to identify the background colour of that sentence through c#.

    I am using Microsoft.Offic e.Interop.Word for this.

    Kindly help.

    Thanks in advance.
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    There might be a way for word to tell you but unfortunately I don't know what it is.

    As an alternative, could you take an image capture of that area programatically and then identify the colours that way?

    Comment

    Working...