Table of contents
TOC
Collapse the table of content
Expand the table of content

TextEffectFormat.KernedPairs Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Sets or returns an MsoTriState constant that indicates whether character pairs in a WordArt object have been kerned. Read/write.

Syntax

expression. KernedPairs

_expression_A variable that represents a TextEffectFormat object.

Return Value

MsoTriState

Remarks

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

ConstantDescription
msoFalseCharacter pairs in the specified WordArt object have not been kerned.
msoTriStateToggleSwitches between msoTrue and msoFalse.
msoTrueCharacter pairs in the specified WordArt object have been kerned.

Example

This example turns on character pair kerning for all WordArt objects in the active publication.

Sub KernedWordArt() 
 Dim pagPage As Page 
 Dim shpShape As Shape 
 For Each pagPage In ActiveDocument.Pages 
 For Each shpShape In pagPage.Shapes 
 If shpShape.Type = msoTextEffect Then 
 shpShape.TextEffect.KernedPairs = msoTrue 
 End If 
 Next 
 Next 
End Sub
© 2018 Microsoft