StringExtensions.GetFirstCharacters Method
From Telerik ILS Common String Extenstion Methods
Telerik.ILS.Common.StringExtenstionMethods
| StringExtensionsGetFirstCharacters Method |
Gets a number of characters in a string starting from the beginning. If the number of characters to get is bigger than the string length, returns the whole string. Throws a System.ArguemntOutOfRange exception if the number of characters is less than 0.
Namespace: Telerik.ILS.Common
Assembly: StringExtensions (in StringExtensions.dll) Version: 1.0.0.0 (1.0.0.0)
public static string GetFirstCharacters( this string input, int charsCount )
<ExtensionAttribute> Public Shared Function GetFirstCharacters ( input As String, charsCount As Integer ) As String
public: [ExtensionAttribute] static String^ GetFirstCharacters( String^ input, int charsCount )
[<ExtensionAttribute>] static member GetFirstCharacters : input : string * charsCount : int -> string
Parameters
- input
- Type: SystemString
- charsCount
- Type: SystemInt32
The number of characters to be extracted.
Return Value
Type: StringSystem.String