mirror of
https://github.com/unidoc/unioffice.git
synced 2025-04-27 13:48:54 +08:00
presentation: support vertical text anchoring
This commit is contained in:
parent
adffc05b78
commit
320ce7148f
@ -32,3 +32,9 @@ func (t TextBox) Properties() drawing.ShapeProperties {
|
|||||||
}
|
}
|
||||||
return drawing.MakeShapeProperties(t.x.SpPr)
|
return drawing.MakeShapeProperties(t.x.SpPr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetTextAnchor controls the text anchoring
|
||||||
|
func (t TextBox) SetTextAnchor(a dml.ST_TextAnchoringType) {
|
||||||
|
t.x.TxBody.BodyPr = dml.NewCT_TextBodyProperties()
|
||||||
|
t.x.TxBody.BodyPr.AnchorAttr = a
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user