Table of contents
TOC
折叠目录
展开目录

TextRange.DropCap 属性 (发布服务器)TextRange.DropCap Property (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回一个DropCap对象,该对象代表指定的文字框架中段落的首字的下沉字母。Returns a DropCap object that represents a dropped capital letter for the paragraphs in the specified text frame.

语法Syntax

表达式首字下沉expression. DropCap

_expression_A 变量,表示内容的TextRange对象。_expression_A variable that represents a TextRange object.

返回值Return Value

首字下沉DropCap

示例Example

本示例对指定文字框架中每个段落的前三个字符应用高为三行的自定义首字下沉。This example applies a custom dropped capital that is three lines high and spans the first three characters of each paragraph in the specified text frame.

Sub SetDropCap() 
 With ActiveDocument.Pages(1).Shapes(1).TextFrame.TextRange 
 .DropCap.ApplyCustomDropCap FontName:="Snap ITC", _ 
 Bold:=True, Size:=3, Span:=3 
 With .ParagraphFormat 
 .SpaceBefore = 6 
 .SpaceAfter = 6 
 End With 
 End With 
End Sub
© 2018 Microsoft