|
void | SetBestFont () |
| Use the characters in Text to determine an installed system font most likely to support this character set.
|
|
void | ApplyToPaint (SKPaint paint) |
|
MeasuredText | Measure () |
| Return size information for the contents of the Text property.
|
|
MeasuredText | Measure (string text) |
| Return size information for the given text.
|
|
MeasuredText | Measure (string text, SKPaint paint) |
|
Pixel | GetRenderLocation (PixelRect rect, Alignment rectAlignment, float offsetX, float offsetY, SKPaint paint) |
| Use the Label's size and Alignment to determine where it should be drawn relative to the given rectangle (aligned to the rectangle according to rectAlignment ).
|
|
void | Render (SKCanvas canvas, Pixel px, SKPaint paint, string text, bool bottom=true) |
|
void | Render (SKCanvas canvas, Pixel px, SKPaint paint, bool bottom=true) |
|
string float height | MeasureHighestString (string[] strings, SKPaint paint) |
|
string PixelLength width | MeasureWidestString (string[] strings, SKPaint paint) |
|
bool | Italic = false |
|
bool | AntiAlias = true |
|
float | PointSize = 0 |
|
bool | PointFilled = false |
|
Color | PointColor = Colors.Magenta |
|
float | OffsetX = 0 |
|
float | OffsetY = 0 |
|
float | BorderRadiusX = 0 |
|
float | BorderRadiusY = 0 |
|
string | text |
|
static bool | RTLSupport = false [get, set] |
| Set this to globally enable support for right-to-left (RTL) languages.
|
|
bool | IsVisible = true [get, set] |
|
string | Text = string.Empty [get, set] |
|
Alignment | Alignment = Alignment.UpperLeft [get, set] |
|
float | Rotation = 0 [get, set] |
| Rotation in degrees clockwise from 0 (horizontal text)
|
|
Color | ForeColor = Colors.Black [get, set] |
|
Color | BackColor [get, set] |
|
Color | BackgroundColor = Colors.Transparent [get, set] |
|
Color | BorderColor = Colors.Transparent [get, set] |
|
float | BorderWidth = 1 [get, set] |
|
PixelRect | LastRenderPixelRect [get] |
|
Color | ShadowColor = Colors.Transparent [get, set] |
|
PixelOffset | ShadowOffset = new(3, 3) [get, set] |
|
bool | AntiAliasBackground = true [get, set] |
|
bool | AntiAliasText = true [get, set] |
|
bool | SubpixelText = true [get, set] |
|
string | FontName = Fonts.Default [get, set] |
|
float | FontSize = 12 [get, set] |
|
bool | Bold = false [get, set] |
|
float? | LineSpacing = null [get, set] |
| Manually defined line height in pixels. If not defined, the default line spacing will be used (according to the typeface, size, etc.)
|
|
float | Padding [get, set] |
|
PixelPadding | PixelPadding = new(0, 0, 0, 0) [get, set] |
|
float | BorderRadius [get, set] |
|
Image? | Image = null [get, set] |
| If supplied, this label will be displayed as an image and its text and styling properties will be ignored.
|
|
static LabelStyle | Default [get] |
|