Class Span
Represent a text with attributes applied.
Inheritance
Inherited Members
Namespace: Tizen.UIExtensions.Common
Assembly: Tizen.UIExtensions.NUI.dll
Syntax
public class Span
Constructors
Span()
Create a new Span instance with default attributes.
Declaration
public Span()
Properties
BackgroundColor
Gets or sets the background color for the text.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
FontAttributes
Gets or sets the font attributes for the text. See FontAttributes for information about FontAttributes.
Declaration
public FontAttributes FontAttributes { get; set; }
Property Value
Type | Description |
---|---|
FontAttributes |
FontFamily
Gets or sets the font family for the text.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FontSize
Gets or sets the font size for the text.
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ForegroundColor
Gets or sets the color for the text.
Declaration
public Color ForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
HorizontalTextAlignment
Gets or sets the horizontal alignment mode for the text. See TextAlignment for information about TextAlignment.
Declaration
public TextAlignment HorizontalTextAlignment { get; set; }
Property Value
Type | Description |
---|---|
TextAlignment |
LineBreakMode
Gets or sets the line break mode for the text. See LineBreakMode for information about LineBreakMode.
Declaration
public LineBreakMode LineBreakMode { get; set; }
Property Value
Type | Description |
---|---|
LineBreakMode |
LineHeight
Gets or sets the line height.
Declaration
public double LineHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Setting Text to a non-null value will set the FormattedText property to null.
TextDecorations
Gets or sets the TextDecorations applied to Text.
Declaration
public TextDecorations TextDecorations { get; set; }
Property Value
Type | Description |
---|---|
TextDecorations |
Operators
Implicit(String to Span)
Converts string value to Span.
Declaration
public static implicit operator Span(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The string text |
Returns
Type | Description |
---|---|
Span |