
Visual Basic (Declaration) | |
---|---|
Public Class GrammarString |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As GrammarString |
C# | |
---|---|
public class GrammarString |
C++/CLI | |
---|---|
public ref class GrammarString |
The format string passed to GrammarString.Format() can understand grammatical rules that are reflectively called in the GrammarString.Library instance. The default library supports the English rules for pluralization, possessives, and articles. For example, the statement GrammarString.Format("You have {1} new {plural({0},{1})}", "message", 3) results in the string "You have 3 new messages". See GrammarLibrary for a list of supported rules. Additional rules can be added by extending GrammarLibrary and setting the GrammarString.Library instance to point to that library.
System.Object
IdeaBlade.Core.GrammarString
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family