应用于 Frameset 对象的 WidthType 属性。
该属性返回或设置指定的 Frameset 对象的宽度类型。WdFramesetSizeType,可读写。
WdFramesetSizeType 可以是下列 WdFramesetSizeType 常量之一: |
wdFramesetSizeTypeFixed Microsoft Word 将指定框架的宽度解释为固定值(以磅为单位)。 |
wdFramesetSizeTypePercent Word 将指定框架的宽度解释为屏幕宽度的百分比。 |
wdFramesetSizeTypeRelative Word 将指定框架的宽度解释为框架页上其它框架的相对宽度。 |
expression.WidthType
expression 必需。该表达式返回一个 Frameset 对象。
应用于 HorizontalLineFormat 对象的 WidthType 属性。
返回或设置指定 HorizontalLineFormat 对象的宽度类型。WdHorizontalLineWidthType,可读写。
WdHorizontalLineWidthType 可以是下列 WdHorizontalLineWidthType 常量之一: |
wdHorizontalLineFixedWidth Microsoft Word 将指定水平线的宽度(长度)解释为固定值(以磅为单位)。该值为使用 AddHorizontalLine 方法添加的水平线的默认值。设置与水平线相关的 InlineShape 对象的 Width 属性可将 WidthType 属性设为该值。 |
wdHorizontalLinePercentWidth Word 将指定水平线的宽度(长度)解释为屏幕宽度的百分比。该值为使用 AddHorizontalLineStandard 方法添加的水平线的默认值。设置水平线的 PercentWidth 属性可将 WidthType 属性设为该值。 |
expression.WidthType
expression 必需。该表达式返回一个 HorizontalLineFormat 对象。
本示例设置活动文档中第一个 Frameset 对象的宽度为窗口宽度的 25%。
With ActiveDocument.ActiveWindow.Panes(1).Frameset
.WidthType = wdFramesetSizeTypePercent
.Width = 25
End With
当应用于 HorizontalLineFormat 对象时。
本示例在活动文档中添加横线,并比较其宽度类型。
Dim temp As InlineShape
Set temp = _
ActiveDocument.InlineShapes.AddHorizontalLineStandard
MsgBox "AddHorizontalLineStandard - WidthType = " _
& temp.HorizontalLineFormat.WidthType
Set temp = _
ActiveDocument.InlineShapes.AddHorizontalLine _
("C:\My Documents\ArtsyRule.gif")
MsgBox "AddHorizontalLine - WidthType = " _
& temp.HorizontalLineFormat.WidthType