ITextBiDi::ComputeTextDirection

See TextBiDi::ComputeTextDirection