Reply
Solved! Go to solution

Turn off shadow

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
Solution
Solution
Accepted by topic author AlanBaljeu
‎08-26-2015 04:32 AM

Re: Turn off shadow

Alan,

 

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

 

regards

Gerald

Re: Turn off shadow

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;