Class Text
A Graphic<T> that represents UnityEngine.UI.Text.
Inherited Members
Namespace: Mux.Markup
Assembly: Mux.Markup.UI.dll
Syntax
public class Text : Graphic<UnityEngine.UI.Text>
Examples
<m:RectTransform
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:m="clr-namespace:Mux.Markup;assembly=Mux.Markup"
xmlns:mu="clr-namespace:Mux.Markup;assembly=Mux.Markup.UI"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:playground="clr-namespace:Mux.Playground;assembly=Assembly-CSharp"
xmlns:DataType="playground:PlaygroundViewModel">
<!--
Note that you can use "using" scheme instead of "clr-namespace" to omit assembly
specification if:
- the referenced type is in an assembly already loaded. (interpreter)
- the referenced type is in the assembly containing the compiled XAML. (compiler)
-->
<mu:StandaloneInputModule />
<mu:Canvas />
<mu:CanvasScaler UiScale="{mu:ConstantPhysicalSize}" />
<mu:GraphicRaycaster />
<mu:Text Font="{Binding Path=Resources.Font}">
<mu:Text.Content>
You have to give property name "Path" to Binding only when you compile
the interpreter with IL2CPP. It is because ContentPropertyAttribute does
not work with IL2CPP.
</mu:Text.Content>
</mu:Text>
</m:RectTransform>
Constructors
| Improve this Doc View SourceText()
Declaration
public Text()
Fields
| Improve this Doc View SourceAlignByGeometryProperty
Backing store for the AlignByGeometry property.
Declaration
public static readonly BindableProperty AlignByGeometryProperty
Field Value
Type | Description |
---|---|
BindableProperty |
AlignmentProperty
Backing store for the Alignment property.
Declaration
public static readonly BindableProperty AlignmentProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ContentProperty
Backing store for the Content property.
Declaration
public static readonly BindableProperty ContentProperty
Field Value
Type | Description |
---|---|
BindableProperty |
FontProperty
Backing store for the Font property.
Declaration
public static readonly BindableProperty FontProperty
Field Value
Type | Description |
---|---|
BindableProperty |
FontSizeProperty
Backing store for the FontSize property.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
FontStyleProperty
Backing store for the FontStyle property.
Declaration
public static readonly BindableProperty FontStyleProperty
Field Value
Type | Description |
---|---|
BindableProperty |
HorizontalOverflowProperty
Backing store for the HorizontalOverflow property.
Declaration
public static readonly BindableProperty HorizontalOverflowProperty
Field Value
Type | Description |
---|---|
BindableProperty |
LineSpacingProperty
Backing store for the LineSpacing property.
Declaration
public static readonly BindableProperty LineSpacingProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ResizeTextForBestFitProperty
Backing store for the ResizeTextForBestFit property.
Declaration
public static readonly BindableProperty ResizeTextForBestFitProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ResizeTextMaxSizeProperty
Backing store for the ResizeTextMaxSize property.
Declaration
public static readonly BindableProperty ResizeTextMaxSizeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ResizeTextMinSizeProperty
Backing store for the ResizeTextMinSize property.
Declaration
public static readonly BindableProperty ResizeTextMinSizeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
SupportRichTextProperty
Backing store for the SupportRichText property.
Declaration
public static readonly BindableProperty SupportRichTextProperty
Field Value
Type | Description |
---|---|
BindableProperty |
VerticalOverflowProperty
Backing store for the VerticalOverflow property.
Declaration
public static readonly BindableProperty VerticalOverflowProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceAlignByGeometry
A property that represents UnityEngine.UI.Text.alignByGeometry.
Declaration
public bool AlignByGeometry { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Alignment
A property that represents UnityEngine.UI.Text.alignment.
Declaration
public UnityEngine.TextAnchor Alignment { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.TextAnchor |
Content
A property that represents UnityEngine.UI.Text.text.
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
String |
Font
A property that represents UnityEngine.UI.Text.font.
Declaration
public UnityEngine.Font Font { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Font |
FontSize
A property that represents UnityEngine.UI.Text.fontSize.
Declaration
public int FontSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
FontStyle
A property that represents UnityEngine.UI.Text.fontStyle.
Declaration
public UnityEngine.FontStyle FontStyle { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.FontStyle |
HorizontalOverflow
A property that represents UnityEngine.UI.Text.horizontalOverflow.
Declaration
public UnityEngine.HorizontalWrapMode HorizontalOverflow { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.HorizontalWrapMode |
LineSpacing
A property that represents UnityEngine.UI.Text.lineSpacing.
Declaration
public float LineSpacing { get; set; }
Property Value
Type | Description |
---|---|
Single |
ResizeTextForBestFit
A property that represents UnityEngine.UI.Text.resizeTextForBestFit.
Declaration
public bool ResizeTextForBestFit { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ResizeTextMaxSize
A property that represents UnityEngine.UI.Text.resizeTextMaxSize.
Declaration
public int ResizeTextMaxSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ResizeTextMinSize
A property that represents UnityEngine.UI.Text.resizeTextMinSize.
Declaration
public int ResizeTextMinSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SupportRichText
A property that represents UnityEngine.UI.Text.supportRichText.
Declaration
public bool SupportRichText { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
VerticalOverflow
A property that represents UnityEngine.UI.Text.verticalOverflow.
Declaration
public UnityEngine.VerticalWrapMode VerticalOverflow { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.VerticalWrapMode |
Methods
| Improve this Doc View SourceAwakeInMainThread()
Declaration
protected override void AwakeInMainThread()