NoProofing property value

A

AP

Hi,

I'm trying to set the NoProofing property on a Range from C# code. The value
is supposed to be true or false, but the property is expecting an int. How
can I set this?

Adam
 
P

Peter Hewett

Hi Adam

The constant wdNoProofing is part of Word.WdLanguageID a value of 1024
decimal or 400 hex.

HTH + Cheers - Peter
 
A

AP

This doesn't make sense to me. The documentation says that the NoProofing
property can be set to true or false, but it takes an int. So what is the
int value for true and what is the int value for false?
 
P

Peter Hewett

Hi AP

Sorry had me wires crossed for a moment - duh!
Just set it to -1 for True and 0 for False.

Cheers - Peter
 
Top