![]() |
ActionComponents
04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
|
Simulates an iOS NSString
to ease the porting of UI code from iOS to Android. A NSString
can be implicitly converted to and from a standard C# String
.
More...
Public Member Functions | |
NSString () | |
Initializes a new instance of the T:Foundation.NSString class. More... | |
NSString (String text) | |
Initializes a new instance of the T:Foundation.NSString class. More... | |
void | DrawString (CGRect rect, UIFont font, UILineBreakMode mode, UITextAlignment alignment) |
Draws the string into the canvas from the current context of the UIGraphics class using the given properties. More... | |
void | DrawString (CGRect rect, UIFont font, UILineBreakMode mode, UITextAlignment alignment, TextBlockAlignment verticalAlignment) |
Draws the string into the canvas from the current context of the UIGraphics class using the given properties. More... | |
void | DrawString (CGRect rect, UIStringAttributes attributes) |
Draws the string into the current graphics context inside of the given rect with the given attributes. More... | |
CGRect | GetBoundingRect (CGSize size, NSStringDrawingOptions options, UIStringAttributes attributes, CGPoint location) |
Gets the bounding rect for the string. More... | |
Static Public Member Functions | |
static implicit | operator String (NSString text) |
Converts the NSString to a String . More... | |
static implicit | operator NSString (String text) |
Converts the String to a NSString . More... | |
Properties | |
String | Text [get, set] |
Gets or sets the text of the string. More... | |
Simulates an iOS NSString
to ease the porting of UI code from iOS to Android. A NSString
can be implicitly converted to and from a standard C# String
.
Foundation.NSString.NSString | ( | ) |
Initializes a new instance of the T:Foundation.NSString class.
Foundation.NSString.NSString | ( | String | text | ) |
Initializes a new instance of the T:Foundation.NSString class.
text | Text. |
void Foundation.NSString.DrawString | ( | CGRect | rect, |
UIFont | font, | ||
UILineBreakMode | mode, | ||
UITextAlignment | alignment | ||
) |
Draws the string into the canvas from the current context of the UIGraphics
class using the given properties.
rect | Rect. |
font | Font. |
mode | Mode. |
alignment | Alignment. |
void Foundation.NSString.DrawString | ( | CGRect | rect, |
UIFont | font, | ||
UILineBreakMode | mode, | ||
UITextAlignment | alignment, | ||
TextBlockAlignment | verticalAlignment | ||
) |
Draws the string into the canvas from the current context of the UIGraphics
class using the given properties.
rect | Rect. |
font | Font. |
mode | Mode. |
alignment | Alignment. |
verticalAlignment | vertical alignment. |
void Foundation.NSString.DrawString | ( | CGRect | rect, |
UIStringAttributes | attributes | ||
) |
Draws the string into the current graphics context inside of the given rect with the given attributes.
rect | Rect. |
attributes | Attributes. |
CGRect Foundation.NSString.GetBoundingRect | ( | CGSize | size, |
NSStringDrawingOptions | options, | ||
UIStringAttributes | attributes, | ||
CGPoint | location | ||
) |
Gets the bounding rect for the string.
size | Size. |
options | Options. |
attributes | Attributes. |
location | Location. |
|
static |
|
static |
|
getset |
Gets or sets the text of the string.
The text.