IdeaBlade DevForce 2010 Help Reference
Plural Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > GrammarLibrary Class : Plural Method



pParams
Returns the plural of a subject.

Syntax

Visual Basic (Declaration) 
Public Overridable Function Plural( _
   ByVal pParams() As String _
) As String
Visual Basic (Usage)Copy Code
Dim instance As GrammarLibrary
Dim pParams() As String
Dim value As String
 
value = instance.Plural(pParams)
C# 
public virtual string Plural( 
   string[] pParams
)
C++/CLI 
public:
virtual String^ Plural( 
   array<String^>^ pParams
) 

Parameters

pParams

Remarks

Handles most cases of subjects ending in "s", "y", "ex", and "ix". This method is reflectively called from GrammarString.Format() when the format string contains the syntax: "{plural(object, quantity)}". For example, the statement GrammarString.Format("You have {1} new {plural({0},{1})}", "message", 3) results in the string "You have 3 new messages".

Requirements

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

See Also

© 2013 All Rights Reserved.