Share via


BodyProperties.VerticalOverflow Property

Text Vertical Overflow.Represents the attribte in schema: vertOverflow

Namespace:  DocumentFormat.OpenXml.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<SchemaAttrAttribute(, "vertOverflow")> _
Public Property VerticalOverflow As EnumValue(Of TextVerticalOverflowValues)
    Get
    Set
'Usage
Dim instance As BodyProperties
Dim value As EnumValue(Of TextVerticalOverflowValues)

value = instance.VerticalOverflow

instance.VerticalOverflow = value
[SchemaAttrAttribute(, "vertOverflow")]
public EnumValue<TextVerticalOverflowValues> VerticalOverflow { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<TextVerticalOverflowValues>
Returns EnumValue<T>.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Determines whether the text can flow out of the bounding box vertically. This is used to determine what will happen in the event that the text within a shape is too large for the bounding box it is contained within. If this attribute is omitted, then a value of overflow is implied.

Consider the case where we have multiply paragraphs within a shape and the second causes text to flow outside the shape. By applying the clip value of the vertOverflow attribute as a body property this overflowing text will now be cut off instead of extending beyond the bounds of the shape.

<p:txBody>
  <a:bodyPr vertOverflow="clip" … />
  …
  <a:p>
    …
    (Some text)
    …
  </a:p>
  <a:p>
    …
    (Some longer text)
    …
  </a:p>
</p:txBody>

The possible values for this attribute are defined by the ST_TextVertOverflowType simple type.

See Also

Reference

BodyProperties Class

BodyProperties Members

DocumentFormat.OpenXml.Drawing Namespace