Lowering Inline Shapes - How does Mathtype/Equation Editor do it?

P

P J Hooper

If you insert any picture into the InlineShapes collection, the picture sits
with its base on the line of text. The only way I have found of lowering
such a picture is to select it and use the Font.Position property - or Format
/ Font / Character Spacing from the menus.

Mathtype and Equation Editor achieve the same result in some other way.
Their output is lowered compare to the line of text but the Font.Position
property is Normal (or 0). How do they do it? What property are they
accessing?

Ay clues much appreciated.

Paul Hooper
 
M

macropod

Hi Paul,

I suspect that, unless you set the Font.Position property yourself, Equation Editor object positioning is determined dynamically by
the corresponding ActiveX control. Then, when you click on the object, the ActiveX control gains focus and nominally resets to
Font.Position property to 'Normal' (0) - so you can't see what it was.

You can test the positioning of InlineShapes via:

Sub TestPosition()
Dim oShp As InlineShape
For Each oShp In ActiveDocument.InlineShapes
MsgBox oShp.Range.Font.Position
Next
End Sub

If you insert an 'ordinary' InlineShape, it's positioning will default to '0', but an Equation Editor object's position will default
to '9999999'; a giveaway that indicates that Word can't determine it - much like testing the row height in a table whose row height
is set to automatic.

Cheers

--
macropod
[MVP - Microsoft Word]


| If you insert any picture into the InlineShapes collection, the picture sits
| with its base on the line of text. The only way I have found of lowering
| such a picture is to select it and use the Font.Position property - or Format
| / Font / Character Spacing from the menus.
|
| Mathtype and Equation Editor achieve the same result in some other way.
| Their output is lowered compare to the line of text but the Font.Position
| property is Normal (or 0). How do they do it? What property are they
| accessing?
|
| Ay clues much appreciated.
|
| Paul Hooper
 

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