MonoTouch.Foundation.NSString Members

The members of MonoTouch.Foundation.NSString are listed below.

See Also: Inherited members from MonoTouch.Foundation.NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
Creates an NSString from a C# string.
Creates a string from a specified blob of data, using a specific encoding.

Public Fields

static readonly
EmptyNSString. Documentation for this section has not yet been entered.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
IsAbsolutePathbool. Whether this is an absolute path.
[read-only]
default property
Item(int)char. Documentation for this section has not yet been entered.
[read-only]
LastPathComponentNSString. The last path component of this string.
[read-only]
Lengthint. The number of Unicode characters in this string.
[read-only]
PathComponentsstring[]. An array of strings containing, in order, each path component of this string.
[read-only]
PathExtensionNSString. Returns this string's path extension, if it has one.

Public Methods

_characterAtIndex(int) : char
The character at the specified index.
AbbreviateTildeInPath() : NSString
Converts a spath to a home-directory-relative path by substituting a tilde for the relevant portion of the path.
AppendPathComponent(NSString) : NSString
Appends the specified str in a manner that results in a path.
AppendPathExtension(NSString) : NSString
Creates a path by appending a path extension separator and then the specified str as a file extension.
AppendPaths(string[]) : string[]
Returns the array of strings created by appending this NSString to each of the specified input paths.
Capitalize(NSLocale) : string
Capitalizes a string using the rules of the specified locale.
Compare(NSString) : NSComparisonResult
Lexically compares this to the specified string.
Compare(NSString, NSStringCompareOptions) : NSComparisonResult
Documentation for this section has not yet been entered.
Compare(NSString, NSStringCompareOptions, NSRange) : NSComparisonResult
Documentation for this section has not yet been entered.
Compare(NSString, NSStringCompareOptions, NSRange, NSLocale) : NSComparisonResult
Documentation for this section has not yet been entered.
Contains(NSString) : bool
Documentation for this section has not yet been entered.
Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
static
CreateNative(string) : IntPtr
Creates an Objective-C NSString from the C# string and returns a pointer to it.
DataUsingEncoding(NSStringEncoding) : NSData
Documentation for this section has not yet been entered.
DataUsingEncoding(NSStringEncoding, bool) : NSData
Documentation for this section has not yet been entered.
DeleteLastPathComponent() : NSString
Returns a new string by deleting the last path component of this string.
DeletePathExtension() : NSString
Returns a new string by deleting the path extension from this string.
static
DetectStringEncoding(NSData, EncodingDetectionOptions, out string, out bool) : uint
Documentation for this section has not yet been entered.
static
DetectStringEncoding(NSData, NSDictionary, out string, out bool) : uint
Documentation for this section has not yet been entered.
DrawString(System.Drawing.PointF, MonoTouch.UIKit.UIFont) : System.Drawing.SizeF
Deprecated in iOS7. Use NSString.DrawString(PointF, UIStringAttributes) instead. Draws the string at the given location with the given font.
DrawString(System.Drawing.RectangleF, MonoTouch.UIKit.UIFont) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.DrawString(PointF, UIStringAttributes) instead.

Draws the string in the specified rectangle with the specified font.

DrawString(System.Drawing.RectangleF, MonoTouch.UIKit.UIFont, MonoTouch.UIKit.UILineBreakMode) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.DrawString(RectangleF, UIStringAttributes) instead

Draws the string in the specified rectangle with the specified font.

DrawString(System.Drawing.PointF, float, MonoTouch.UIKit.UIFont, MonoTouch.UIKit.UILineBreakMode) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.DrawString(RectangleF, UIStringAttributes) instead.

Draws the string in the specified rectangle with the specified font.

DrawString(System.Drawing.RectangleF, MonoTouch.UIKit.UIFont, MonoTouch.UIKit.UILineBreakMode, MonoTouch.UIKit.UITextAlignment) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.DrawString(RectangleF, UIStringAttributes) instead.

Draws the string in the specified rectangle with the specified font.

DrawString(System.Drawing.PointF, float, MonoTouch.UIKit.UIFont, float, MonoTouch.UIKit.UILineBreakMode, MonoTouch.UIKit.UIBaselineAdjustment) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.DrawString(RectangleF, UIStringAttributes) instead.

Draws the string in the specified rectangle with the specified font.

DrawString(System.Drawing.PointF, float, MonoTouch.UIKit.UIFont, float, ref float, MonoTouch.UIKit.UILineBreakMode, MonoTouch.UIKit.UIBaselineAdjustment) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.DrawString(RectangleF, UIStringAttributes) instead.

Draws the string in the specified rectangle with the specified font.

DrawString(System.Drawing.PointF, float, MonoTouch.UIKit.UIFont, float, float, MonoTouch.UIKit.UILineBreakMode, MonoTouch.UIKit.UIBaselineAdjustment) : System.Drawing.SizeF
Documentation for this section has not yet been entered.
Encode(NSStringEncoding) : NSData
Documentation for this section has not yet been entered.
Encode(NSStringEncoding, bool) : NSData
Documentation for this section has not yet been entered.
override
Equals(object) : bool
Documentation for this section has not yet been entered.
static
Equals(NSString, NSString) : bool
Documentation for this section has not yet been entered.
ExpandTildeInPath() : NSString
Returns a new string that expands a tilde in this string (indicating the user's home dir) into a full path.
static
FromData(NSData, NSStringEncoding) : NSString
Creates an NSString from an NSData source.
static
FromHandle(IntPtr) : string
Utility method that returns a string from a pointer that points to an Objective-C NSString object.
override
GetHashCode() : int
Generates a hash code for the current instance.
GetLineStart(out uint, out uint, out uint, NSRange)
Documentation for this section has not yet been entered.
LineRangeForRange(NSRange) : NSRange
Documentation for this section has not yet been entered.
LocalizedCaseInsensitiveContains(NSString) : bool
Documentation for this section has not yet been entered.
MutableCopy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
static
PathWithComponents(string[]) : string[]
Constructs a path from the specified array of components.
static
ReleaseNative(IntPtr)
Releases a native Objective-C string.
Replace(NSRange, NSString) : NSString
Returns a new string that substitutes the replacement string into this string, at the specified range.
ResolveSymlinksInPath() : NSString
Resolves all symbolic links in this and returns the standardized path result.
StandarizePath() : NSString
Standardizes this string into a path by, for instance, removing "/./" and similar constructs.
StringSize(MonoTouch.UIKit.UIFont) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.GetSizeUsingAttributes(UIStringAttributes) instead.

Calculates the System.Drawing.SizeF of the specified string if it were rendered with the specified font.

StringSize(MonoTouch.UIKit.UIFont, System.Drawing.SizeF) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.GetBoundingRect (SizeF, NSStringDrawingOptions, UIStringAttributes,NSStringDrawingContext) instead.

Calculates the System.Drawing.SizeF of the specified string if it were rendered with the specified font and constrained to the specified size.

StringSize(MonoTouch.UIKit.UIFont, System.Drawing.SizeF, MonoTouch.UIKit.UILineBreakMode) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.GetBoundingRect (SizeF, NSStringDrawingOptions, UIStringAttributes,NSStringDrawingContext) instead.

Calculates the System.Drawing.SizeF of the specified string if it were rendered with the specified: font, size constraint, and line-break mode.

StringSize(MonoTouch.UIKit.UIFont, float, MonoTouch.UIKit.UILineBreakMode) : System.Drawing.SizeF

Deprecated in iOS7. Use NSString.GetBoundingRect (SizeF, NSStringDrawingOptions, UIStringAttributes,NSStringDrawingContext) instead.

Calculates the System.Drawing.SizeF of a single line of the specified string if it were rendered with the specified: font, width constraint, and line-break mode.

StringSize(MonoTouch.UIKit.UIFont, float, ref float, float, MonoTouch.UIKit.UILineBreakMode) : System.Drawing.SizeF

Deprecated on iOS7.

Calculates the System.Drawing.SizeF and size of the font of the first line of the specified string if it were rendered with the specified constraints.

ToLower(NSLocale) : string
Returns a new string that is the lowercase version of this string, according to the rules of the specified locale.
override
ToString() : string
Returns a string representation of the value of the current instance.
ToUpper(NSLocale) : string
Returns a new string that is the uppercase version of this string, according to the rules of the specified locale.

Protected Methods

override
Dispose(bool)
Releases the resources used by the NSString object.

Public Operators

static
Equality(NSString, NSString)Documentation for this section has not yet been entered.
static
Inequality(NSString, NSString)Documentation for this section has not yet been entered.
static
Conversion to MonoTouch.Foundation.NSString(Explicit)Documentation for this section has not yet been entered.
static
Conversion to System.String(Implicit)Converts the NSString to a CIL/C# string.