ParagraphFormat.LockToBaseLine property (Publisher)

Returns an MsoTriState constant that represents whether text is positioned along baseline guides. Read/write.

Syntax

expression.LockToBaseLine

expression A variable that represents a ParagraphFormat object.

Return value

MsoTristate

Remarks

The LockToBaseLine property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.

Constant Description
msoFalse The text is not aligned to baselines.
msoTriStateMixed The specified paragraphs contain both text that is aligned to baselines and text that is not aligned to baselines.
msoTrue The text is aligned to baselines.

Example

The following example sets the LockToBaseLine property to True.

Dim objParaForm As ParagraphFormat 
Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _ 
 .TextFrame.TextRange.ParagraphFormat 
objParaForm.LockToBaseLine = msoTrue 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.