TextFrame.VerticalAnchor Property
Returns or sets the vertical alignment of text in a text frame. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property VerticalAnchor As MsoVerticalAnchor
Get
Set
'Usage
Dim instance As TextFrame
Dim value As MsoVerticalAnchor
value = instance.VerticalAnchor
instance.VerticalAnchor = value
MsoVerticalAnchor VerticalAnchor { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoVerticalAnchor
Remarks
The value of the VerticalAnchor property can be one of these MsoVerticalAnchor constants.
Constant |
Description |
---|---|
msoAnchorBottom |
Anchors the bottom of the text string to the current position. |
msoAnchorBottomBaseLine |
Anchors the bottom of the text string to the current position regardless of the resizing of text. When you resize text without baseline anchoring, the text centers itself on the previous position. |
msoAnchorMiddle |
Anchors the middle of the text string to the current position. |
msoAnchorTop |
Anchors the top of the text string to the current position. |
msoAnchorTopBaseline |
Anchors the top of the text string to the current position regardless of the resizing of text. When you resize text without baseline anchoring, the text centers itself on the previous position. |
msoVerticalAnchorMixed |
Read-only. Returned when two or more text boxes within a shape range have this property set to different values. |