NumberPosition 属性 (Word) ListLevelListLevel.NumberPosition property (Word)

返回或设置指定的ListLevel对象的编号或项目符号的位置 (以磅为单位)。Returns or sets the position (in points) of the number or bullet for the specified ListLevel object. 读/写 SingleRead/write Single.

语法Syntax

expressionexpression. NumberPosition

_表达式_一个返回 "ListLevel" 对象的表达式。expression An expression that returns a 'ListLevel' object.

注解Remarks

对于每个列表级别,可设置编号或者项目符号的位置、制表位的位置和换行文字的位置。For each list level, you can set the position of the number or bullet, the position of the tab, and the position of the text that wraps.

示例Example

本示例设置第三个多级符号列表模板的所有级别的缩进量。This example sets the indentation for all the levels of the third outline-numbered list template. 每个列表级别都比前一个级别多缩进 0.25 英寸(18 磅)。Each list level is indented 0.25 inch (18 points) more than the preceding level.

r = 0 
For Each lev In ListGalleries(wdOutlineNumberGallery) _ 
 .ListTemplates(3).ListLevels 
 lev.Alignment = wdListLevelAlignLeft 
 lev.NumberPosition = r 
 r = r + 18 
Next lev

本示例将最后一个编号列表模板的第一级的缩进量设置为 0.5 英寸。This example sets the indent for the first level of the last numbered list template to 0.5 inch.

With ListGalleries(wdNumberGallery).ListTemplates(7).ListLevels(1) 
 .Alignment = wdListLevelAlignLeft 
 .NumberPosition = InchesToPoints(0.5) 
End With

另请参阅See also

ListLevel 对象ListLevel Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.