WidthType Property

See Also         Example         Applies To

Returns or sets the width type for the specified Frameset or HorizontalLineFormat object. Read/write Long.

For a Frameset object, this property can be one of the following WdFramesetSizeType constants.

Constant Description
wdFramesetSizeTypeFixed Microsoft Word interprets the width of the specified frame as a fixed value (in points).
wdFramesetSizeTypePercent Word interprets the width of the specified frame as a percentage of the screen width.
wdFramesetSizeTypeRelative Word interprets the width of the specified frame as relative to the width of other frames on the frames page.

For a HorizontalLineFormat object, this property can be either of the following WdHorizontalLineWidthType constants.

Constant Description
wdHorizontalLineFixedWidth Word interprets the width (length) of the specified horizontal line as a fixed value (in points). This is the default value for horizontal lines added with the AddHorizontalLine method. Setting the Width property for the InlineShape object associated with a horizontal line sets the WidthType property to this value.
wdHorizontalLinePercentWidth Word interprets the width (length) of the specified horizontal line as a percentage of the screen width. This is the default value for horizontal lines added with the AddHorizontalLineStandard method. Setting the PercentWidth property on a horizontal line sets the WidthType property to this value.