Turn off shadow

Valued Contributor
Valued Contributor

In the assembly environment there is a toggle button for Drop Shadow.  I want to create a new assembly and turn off Drop Shadow there.  

 

The ViewStyle object has a DropShadow property, but I don't know how to get one.  There are properties like this

 

Public Property ViewStyles As Object but I am not clear how to use this.

2 REPLIES

Re: Turn off shadow

Genius
Genius

Alan,

 

'ActiveDocument.Windows.Item(1).View.ViewStyle.DropShadow = 0' should do the job.

 

regards

Gerald

Re: Turn off shadow

Valued Contributor
Valued Contributor

I assume that was VB code there.  I needed some type casting to get things working in C#.  My code:

 

((doc.Windows.Item(1) as Window).View.ViewStyle as ViewStyle).DropShadow = 0;