https://msdn.microsoft.com/VBA/Word-VBA/articles/view-showheading-method-word

View.ShowHeading Method (Word)

office 365 dev account|Last Updated: 6/12/2017

|

1 Contributor

Shows all headings up to the specified heading level and hides subordinate headings and body text.

Syntax

expression . ShowHeading( Level )

expression Required. A variable that represents a View object.

Parameters

Name Required/Optional Data Type Description
Level Required Long The outline heading level (a number from 1 to 9).

Remarks

This method generates an error if the view isn't outline view or master document view.

Example

This example switches the active window to outline view and displays all text that's formatted with the Heading 1 style. Body text and all other types of headings are hidden.

With ActiveDocument.ActiveWindow.View
.Type = wdOutlineView
.ShowHeading 1
End With

This example switches the window for Document1 to outline view and displays all text that's formatted with the Heading 1, Heading 2, or Heading 3 style.

With Windows("Document1").View
.Type = wdOutlineView
.ShowHeading 3
End With

See also

Concepts

View Object

最新文章

  1. java 引入自定义字体font后出现的硬盘吃光的问题
  2. SoapUI 设置 request data with json body
  3. 无法更新 EntitySet“SoreInfo_Table”,因为它有一个 DefiningQuery,而 <ModificationFunctionMapping> 元素中没有支持当前操作的 <InsertFunction> 元素。
  4. 【bzoj2333】 [SCOI2011]棘手的操作 可并堆+lazy标记
  5. [51NOD1065] 最小正子段和(STL,前缀和)
  6. arm tiny6410双网卡桥接问题
  7. *像word一样编辑复杂的文本:SpannableString 样式详介
  8. Hadoop的安装与配置说明
  9. Java[1] Java学习书籍汇总(转)
  10. 尝试解决IIS问题一些方法
  11. 【CNMP系列】CentOS7.0下安装FTP服务
  12. Redis【第二篇】集群搭建
  13. 基于angular2x+ng-bootstrap构建后台管理系统界面(干货)
  14. 嵌入式linux------SDL移植(am335x下显示yuv420)
  15. 浅入深出Vue:环境搭建
  16. Java学习笔记之——集合
  17. Building Forms with PowerShell – Part 1 (The Form)
  18. 对Spring Ioc的理解
  19. centos7 彻底卸载PHP7
  20. Selenium实战总结(webwiew下拉框定位)

热门文章

  1. Fedora 13 Alpha测试手记横空出世
  2. Vue的学习--环境配置
  3. 请求不携带cookie问题
  4. redirect_uri 参数错误
  5. java 之 wait, notify, park, unpark , synchronized, Condition
  6. 学习活动管理系统:LAMS
  7. 数值溢出(arithmetic overflow)问题与解决方案
  8. [selenium]选取下拉框内容的方法
  9. AlertDialog的onCreateDialog与onPrepareDialog用法
  10. C语言深度解剖读书笔记