TextHorizontalAlignment

Shape.TextHorizontalAlignment property

获取和设置形状的文本水平对齐类型。

public TextAlignmentType TextHorizontalAlignment { get; set; }

例子


[C#]
if (shape.TextHorizontalAlignment == Aspose.Cells.TextAlignmentType.Bottom)
    shape.TextHorizontalAlignment = Aspose.Cells.TextAlignmentType.Center;

也可以看看