Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextFormatter Exception
Message
De
06/02/2010 11:03:19
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
TextFormatter Exception
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01447906
Message ID:
01447906
Vues:
91
Hi,
FormattedText ft = new FormattedText("Hello", CultureInfo.CurrentCulture, FlowDirection.LeftToRight,
new Typeface("Verdana"), 100, Brushes.Black);
double d = ft.MinWidth;
Second line throws a ArgumentNullException. Stack trace shows MS.Internal.TextFormatterImp.VerifyTextFormattingArguments(.....) Value cannot be null. Parameter name: textSource. Works fine IF DrawingContext.DrawText(ft,0,0) is executed between the two lines.
Anyone?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform