摘要:
private double MeasureTextWidth(string text, double fontSize, string fontFamily) { FormattedText formattedText = new FormattedText( text, System.Globalization.CultureInfo.InvariantCulture, FlowDirection.LeftToRight, new Typeface(fontFamily.ToString()), fontSize, Brushes.Black ); returnformattedText. 阅读全文