Show / Hide Table of Contents

Class Text

A Graphic<T> that represents UnityEngine.UI.Text.

Inheritance
Object
Graphic<UnityEngine.UI.Text>
Text
Inherited Members
Graphic<UnityEngine.UI.Text>.ColorProperty
Graphic<UnityEngine.UI.Text>.MaterialProperty
Graphic<UnityEngine.UI.Text>.RaycastTargetProperty
Graphic<UnityEngine.UI.Text>.Color
Graphic<UnityEngine.UI.Text>.Material
Graphic<UnityEngine.UI.Text>.RaycastTarget
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 Source

Text()

Declaration
public Text()

Fields

| Improve this Doc View Source

AlignByGeometryProperty

Backing store for the AlignByGeometry property.

Declaration
public static readonly BindableProperty AlignByGeometryProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

AlignmentProperty

Backing store for the Alignment property.

Declaration
public static readonly BindableProperty AlignmentProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

ContentProperty

Backing store for the Content property.

Declaration
public static readonly BindableProperty ContentProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

FontProperty

Backing store for the Font property.

Declaration
public static readonly BindableProperty FontProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

FontSizeProperty

Backing store for the FontSize property.

Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

FontStyleProperty

Backing store for the FontStyle property.

Declaration
public static readonly BindableProperty FontStyleProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

HorizontalOverflowProperty

Backing store for the HorizontalOverflow property.

Declaration
public static readonly BindableProperty HorizontalOverflowProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

LineSpacingProperty

Backing store for the LineSpacing property.

Declaration
public static readonly BindableProperty LineSpacingProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

ResizeTextForBestFitProperty

Backing store for the ResizeTextForBestFit property.

Declaration
public static readonly BindableProperty ResizeTextForBestFitProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

ResizeTextMaxSizeProperty

Backing store for the ResizeTextMaxSize property.

Declaration
public static readonly BindableProperty ResizeTextMaxSizeProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

ResizeTextMinSizeProperty

Backing store for the ResizeTextMinSize property.

Declaration
public static readonly BindableProperty ResizeTextMinSizeProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

SupportRichTextProperty

Backing store for the SupportRichText property.

Declaration
public static readonly BindableProperty SupportRichTextProperty
Field Value
Type Description
BindableProperty
| Improve this Doc View Source

VerticalOverflowProperty

Backing store for the VerticalOverflow property.

Declaration
public static readonly BindableProperty VerticalOverflowProperty
Field Value
Type Description
BindableProperty

Properties

| Improve this Doc View Source

AlignByGeometry

A property that represents UnityEngine.UI.Text.alignByGeometry.

Declaration
public bool AlignByGeometry { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Alignment

A property that represents UnityEngine.UI.Text.alignment.

Declaration
public UnityEngine.TextAnchor Alignment { get; set; }
Property Value
Type Description
UnityEngine.TextAnchor
| Improve this Doc View Source

Content

A property that represents UnityEngine.UI.Text.text.

Declaration
public string Content { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Font

A property that represents UnityEngine.UI.Text.font.

Declaration
public UnityEngine.Font Font { get; set; }
Property Value
Type Description
UnityEngine.Font
| Improve this Doc View Source

FontSize

A property that represents UnityEngine.UI.Text.fontSize.

Declaration
public int FontSize { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

FontStyle

A property that represents UnityEngine.UI.Text.fontStyle.

Declaration
public UnityEngine.FontStyle FontStyle { get; set; }
Property Value
Type Description
UnityEngine.FontStyle
| Improve this Doc View Source

HorizontalOverflow

A property that represents UnityEngine.UI.Text.horizontalOverflow.

Declaration
public UnityEngine.HorizontalWrapMode HorizontalOverflow { get; set; }
Property Value
Type Description
UnityEngine.HorizontalWrapMode
| Improve this Doc View Source

LineSpacing

A property that represents UnityEngine.UI.Text.lineSpacing.

Declaration
public float LineSpacing { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

ResizeTextForBestFit

A property that represents UnityEngine.UI.Text.resizeTextForBestFit.

Declaration
public bool ResizeTextForBestFit { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

ResizeTextMaxSize

A property that represents UnityEngine.UI.Text.resizeTextMaxSize.

Declaration
public int ResizeTextMaxSize { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

ResizeTextMinSize

A property that represents UnityEngine.UI.Text.resizeTextMinSize.

Declaration
public int ResizeTextMinSize { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

SupportRichText

A property that represents UnityEngine.UI.Text.supportRichText.

Declaration
public bool SupportRichText { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

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 Source

AwakeInMainThread()

Declaration
protected override void AwakeInMainThread()
Overrides
Mux.Markup.Graphic<UnityEngine.UI.Text>.AwakeInMainThread()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX