Visio Guy

Visio Discussions => Programming & Code => Topic started by: bwharrington on September 21, 2020, 09:06:52 PM

Title: Calculating height of container header.
Post by: bwharrington on September 21, 2020, 09:06:52 PM
I'm trying to figure out how to calculate the container header. Does this show up anywhere as a property I don't see or can calculated somehow?

Thanks,
Title: Re: Calculating height of container header.
Post by: Paul Herber on September 21, 2020, 09:34:40 PM
Container shapes are grouped shapes and they all seem to have two sub-shapes, the second of which is the header area. So you need to look at the height of sub-shape 2.
Title: Re: Calculating height of container header.
Post by: Nikolay on September 21, 2020, 10:40:00 PM
Please note that the height depends heavily on the container style. For different styles, header height will vary.
Also if you switch container type (button on the toolbar), the header may easily become a footer....
Title: Re: Calculating height of container header.
Post by: bwharrington on September 22, 2020, 09:20:54 PM
Thanks Paul.

Thanks Nikolay, I'm fortunate that I don't have to account to different styles. Just the default style.