iOS Guides | Samples

UIKit.UIStringDrawing Class

Extension class for drawing strings to the screen.

See Also: UIStringDrawing

Syntax

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static class UIStringDrawing

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of UIKit.UIStringDrawing are listed below.

See Also: Object

Public Methods

static
DrawString(this NSString, UIFont, CGPoint) : CGSize
Draws the string at the specified point, using the font.
static
DrawString(this NSString, UIFont, CGRect) : CGSize
Draws the string in the rect, using the font.
static
DrawString(this String, UIFont, CGPoint) : CGSize
Draws the string at the specified point, using the font.
static
DrawString(this String, UIFont, CGRect) : CGSize
Draws the string in the specified rect, using the font.
static
DrawString(this NSString, UIFont, UILineBreakMode, CGRect) : CGSize
Draws the string in the specified rect, using the font, with the specified line-breaking mode.
static
DrawString(this String, UIFont, UILineBreakMode, CGRect) : CGSize
Draws the string in the specified rect, using the font, with the specified line-breaking mode.
static
DrawString(this NSString, UIFont, UILineBreakMode, CGPoint, nfloat) : CGSize
Draws the string, starting at the specified point and extending width, using the font, with the specified line-breaking breakMode.
static
DrawString(this NSString, UIFont, UILineBreakMode, UITextAlignment, CGRect) : CGSize
Draws the string in the specified rect, using the font, with the specified alignment and line-breaking mode.
static
DrawString(this String, UIFont, UILineBreakMode, CGPoint, nfloat) : CGSize
Draws the string, starting at the specified point and extending width, using the font, with the specified line-breaking breakMode.
static
DrawString(this String, UIFont, UILineBreakMode, UITextAlignment, CGRect) : CGSize
Draws the string in the specified rect, using the font, with the specified alignment and line-breaking mode.
static
DrawString(this NSString, UIFont, UILineBreakMode, UIBaselineAdjustment, CGPoint, nfloat, nfloat) : CGSize
static
DrawString(this String, UIFont, UILineBreakMode, UIBaselineAdjustment, CGPoint, nfloat, nfloat) : CGSize
Draws the string, starting at the specified point with a baseline adjustment and extending width, using the font, with the specified line-breaking mode.
static
DrawString(this NSString, UIFont, UILineBreakMode, UIBaselineAdjustment, CGPoint, nfloat, nfloat, ref nfloat) : CGSize
Draws the string, starting at the specified point with a baseline adjustment and extending width, using the font in the size range specified, with the specified line-breaking mode.
static
DrawString(this String, UIFont, UILineBreakMode, UIBaselineAdjustment, CGPoint, nfloat, nfloat, ref nfloat) : CGSize
Draws the string, starting at the specified point with a baseline adjustment and extending width, using the font in the size range (outputting actualFontSize), with the specified line-breaking mode.
static
StringSize(this NSString, UIFont) : CGSize
The calculated size of the string if rendered with the font.
static
StringSize(this String, UIFont) : CGSize
The calculated size of the string if rendered with the font.
static
StringSize(this NSString, UIFont, CGSize) : CGSize
The calculated size of the string if rendered with the font or constrainedToSize, whichever is smaller.
static
StringSize(this String, UIFont, CGSize) : CGSize
The calculated size of the string if rendered with the font or constrainedToSize, whichever is smaller.
static
StringSize(this NSString, UIFont, UILineBreakMode, CGSize) : CGSize
The smaller of constrainedToSize or the size of the string rendered in font with lineBreakMode.
static
StringSize(this NSString, UIFont, UILineBreakMode, nfloat) : CGSize
The size of the string rendered in font, if constrained to forWidth and with breakMode.
static
StringSize(this String, UIFont, UILineBreakMode, CGSize) : CGSize
The smaller of constrainedToSize or the calculated size of the string rendered in font with lineBreakMode.
static
StringSize(this String, UIFont, UILineBreakMode, nfloat) : CGSize
The size of the string rendered with font and breakMode, for the width forWidth.
static
StringSize(this NSString, UIFont, UILineBreakMode, nfloat, ref nfloat, nfloat) : CGSize
The calculated size of the string rendered with the font in the specified size range, with lineBreakMode and for width forWidth.
static
StringSize(this String, UIFont, UILineBreakMode, nfloat, ref nfloat, nfloat) : CGSize
The calculated size of the string rendered with the font in the specified size range (outputting actualFontSize), with lineBreakMode and for width forWidth.