Postion and AlignmentPoint

if (text.HorizontalMode == TextHorizontalMode.TextLeft &&       text.VerticalMode == TextVerticalMode.TextBase)
{
    // use Position
}
else
{
    // use AlignmentPoint
}
if (text.Justify == AttachmentPoint.BaseLeft)
{
    // use Position
}
else
{
    // use AlignmentPoint
}
原文地址:https://www.cnblogs.com/swtool/p/8318815.html