if (text.HorizontalMode == TextHorizontalMode.TextLeft &&       text.VerticalMode == TextVerticalMode.TextBase)
{
    // use Position
}
else
{
    // use AlignmentPoint
}

 

 

if (text.Justify == AttachmentPoint.BaseLeft)
{
    // use Position
}
else
{
    // use AlignmentPoint
}

相关文章:

  • 2021-09-25
  • 2021-10-12
  • 2022-12-23
  • 2021-10-30
  • 2021-12-23
  • 2021-05-11
  • 2021-09-10
  • 2022-12-23
猜你喜欢
  • 2021-09-01
  • 2021-05-26
  • 2021-11-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案