ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
UIKit.UIFont Class Reference

Simulates a iOS UIFont to ease the porting of UI code from iOS to Android. A UIFont holds information about the font selected for an upcoming draw operation and contains a Paint object that will be used in the drawing process. NOTE: Only a small percentage of UIFont has been ported to support the Action Components. More...

Public Member Functions

 UIFont ()
 Initializes a new instance of the T:UIKit.UIFont class. More...
 

Static Public Member Functions

static CGSize StringSize (string text, UIFont font, CGSize size, UILineBreakMode mode)
 Measures the size of the current string for the given font, available size and line break mode. More...
 
static UIFont SystemFontOfSize (nfloat size)
 Returns a system font of the given size. More...
 
static UIFont BoldSystemFontOfSize (nfloat size)
 Returns a bold system font of the given size. More...
 

Properties

Paint FontPaint [get, set]
 Gets or sets the font paint. More...
 
nfloat TextSize = new Paint() [get, set]
 Gets or sets the size of the text. More...
 
ACColor TextColor [get, set]
 Gets or sets the color of the text. More...
 
bool TextBold [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIFont text is bold. More...
 

Detailed Description

Simulates a iOS UIFont to ease the porting of UI code from iOS to Android. A UIFont holds information about the font selected for an upcoming draw operation and contains a Paint object that will be used in the drawing process. NOTE: Only a small percentage of UIFont has been ported to support the Action Components.

Constructor & Destructor Documentation

UIKit.UIFont.UIFont ( )

Initializes a new instance of the T:UIKit.UIFont class.

Here is the caller graph for this function:

Member Function Documentation

static UIFont UIKit.UIFont.BoldSystemFontOfSize ( nfloat  size)
static

Returns a bold system font of the given size.

Returns
The system font of size.
Parameters
sizeSize.

Here is the call graph for this function:

Here is the caller graph for this function:

static CGSize UIKit.UIFont.StringSize ( string  text,
UIFont  font,
CGSize  size,
UILineBreakMode  mode 
)
static

Measures the size of the current string for the given font, available size and line break mode.

Returns
The size.
Parameters
textText.
fontFont.
sizeSize.
modeMode.

Here is the call graph for this function:

Here is the caller graph for this function:

static UIFont UIKit.UIFont.SystemFontOfSize ( nfloat  size)
static

Returns a system font of the given size.

Returns
The font of size.
Parameters
sizeSize.

Here is the call graph for this function:

Here is the caller graph for this function:

Property Documentation

Paint UIKit.UIFont.FontPaint
getset

Gets or sets the font paint.

The font paint.

bool UIKit.UIFont.TextBold
getset

Gets or sets a value indicating whether this T:UIKit.UIFont text is bold.

true if text bold; otherwise, false.

ACColor UIKit.UIFont.TextColor
getset

Gets or sets the color of the text.

The color of the text.

nfloat UIKit.UIFont.TextSize = new Paint()
getset

Gets or sets the size of the text.

The size of the text.