UIKit.UILabel Members

The members of UIKit.UILabel are listed below.

See Also: Inherited members from UIKit.UIView

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
Initializes the UILabel with the specified frame.
A constructor that initializes the object from the data stored in the unarchiver object.

Protected Constructors

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.

Public Properties

AdjustsFontSizeToFitWidthbool. Whether the font size should be automatically reduced so that the title can be fully rendered in the UILabel's bounds.
AdjustsLetterSpacingToFitWidthbool. App developers should use MinimumScaleFactor rather than this deprecated method.
[read-only]
static
AppearanceUILabel.UILabelAppearance. Strongly-typed property that returns the UIAppearance class for this class.
AttributedTextFoundation.NSAttributedString. Sets the text for the label using attributed strings.
BaselineAdjustmentUIBaselineAdjustment. How baselines are adjusted when the Text is shrunk to fit the UILabel's bounds.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
Enabledbool. The enabled state to use when drawing this UILabel's Text.
FontUIFont. The font of the Text.
Highlightedbool. Whether this UILabel should be drawn with a highlight.
HighlightedTextColorUIColor. The color to use to highlight the label's Text.
LineBreakModeUILineBreakMode. The technique used for wrapping and truncating this UILabel's Text.
Linesnint. The maximum number of lines to use for rendering the Text.
MinimumFontSizenfloat. App developers should use MinimumScaleFactor rather than this deprecated method.
MinimumScaleFactornfloat. The minimum scale supported for the Text.
PreferredMaxLayoutWidthnfloat. The preferred maximum width, in points, for a multiline label.
ShadowColorUIColor. The color to use for the Text's shadow.
ShadowOffsetCoreGraphics.CGSize. The offset of the shadow, in points, from the Text.
Textstring. The text displayed by this UILabel.
TextAlignmentUITextAlignment. Controls the text alignment.
TextColorUIColor. The color of the Text.

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UILabel.UILabelAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
DrawText(CoreGraphics.CGRect)
Renders this UILabel's Text (or its shadow) in the specified RectangleF.
static
GetAppearance<T>() : UILabel.UILabelAppearance
The strongly-typed IUIAppearance for this object.
static
GetAppearance<T>(UITraitCollection) : UILabel.UILabelAppearance
Documentation for this section has not yet been entered.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UILabel.UILabelAppearance
Documentation for this section has not yet been entered.
TextRectForBounds(CoreGraphics.CGRect, nint) : CoreGraphics.CGRect
The drawing RectangleF for this UILabel's Text.

Protected Methods

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