MonobjcMonobjc Documented Class Library
StringWithCharactersLength Method (chars, length)
NamespacesMonobjc.FoundationNSStringStringWithCharactersLength(IntPtr, NSUInteger)

Returns a string containing a given number of characters taken from a given C array of Unicode characters.

Original signature is '+ (id)stringWithCharacters:(const unichar *)chars length:(NSUInteger)length'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSString StringWithCharactersLength(
	IntPtr chars,
	NSUInteger length
Public Shared Function StringWithCharactersLength ( _
	chars As IntPtr, _
	length As NSUInteger _
) As NSString
static NSString^ StringWithCharactersLength(
	IntPtr chars, 
	NSUInteger length
chars (IntPtr)
A C array of Unicode characters; the value must not be NULL.
length (NSUInteger)
The number of characters to use from chars.
Return Value
A string containing length Unicode characters taken (starting with the first) from chars.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)