[Powerpoint] Does msoLineDashStyleMixed mean "no border"?

D

Daniel Kirsch

I want to know if a shape has a border. In my example slide objects with
no border have the property Line.DashStyle set to msoLineDashStyleMixed.

Is that the correct way to detect if the shape has a border? For me
msoLineDashStyleMixed implies a mixture of different styles but not "no
border".

Thanks
Daniel
 
S

Steve Rindsberg

I want to know if a shape has a border. In my example slide objects with
no border have the property Line.DashStyle set to msoLineDashStyleMixed.

Is that the correct way to detect if the shape has a border? For me
msoLineDashStyleMixed implies a mixture of different styles but not "no
border".

Line.Style takes values from 1 to 5; 1 is a solid line, the other values are
the various "thin-thick-thin" and similar styles (see the options for Style in
the line formatting dialog box).

See the Dashed options in the same dialog box for dash styles.

To see whether there's an outline of any type, look at .Line.Visible (boolean)

Incidentally, you can find the answers to this type of question quite quickly
by recording a macro while you change a shape's properties using the normal PPT
UI. The code it records isn't generally that useful but it does show you what
properties you've just changed. More or less.
 
D

Daniel Kirsch

Steve said:
Incidentally, you can find the answers to this type of question quite quickly
by recording a macro while you change a shape's properties using the normal PPT
UI. The code it records isn't generally that useful but it does show you what
properties you've just changed. More or less.

Good idea!
Maybe this will help me with my background color problem as well :)

Cheers
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top