Table of Contents

Class TextObject

Namespace
DotTiled
Assembly
DotTiled.dll

A text object in a map.

public class TextObject : Object, IHasProperties
Inheritance
TextObject
Implements
Inherited Members

Properties

Bold

Whether the text is bold.

public bool Bold { get; set; }

Property Value

bool

Color

The color of the text.

public Color Color { get; set; }

Property Value

Color

FontFamily

The font family used for the text.

public string FontFamily { get; set; }

Property Value

string

HorizontalAlignment

The horizontal alignment of the text.

public TextHorizontalAlignment HorizontalAlignment { get; set; }

Property Value

TextHorizontalAlignment

Italic

Whether the text is italic.

public bool Italic { get; set; }

Property Value

bool

Kerning

Whether kerning should be used while rendering the text.

public bool Kerning { get; set; }

Property Value

bool

PixelSize

The size of the font in pixels.

public int PixelSize { get; set; }

Property Value

int

Strikeout

Whether a line should be drawn through the text.

public bool Strikeout { get; set; }

Property Value

bool

Text

The text to be displayed.

public string Text { get; set; }

Property Value

string

Underline

Whether a line should be drawn below the text.

public bool Underline { get; set; }

Property Value

bool

VerticalAlignment

The vertical alignment of the text.

public TextVerticalAlignment VerticalAlignment { get; set; }

Property Value

TextVerticalAlignment

Wrap

Whether word wrapping is enabled.

public bool Wrap { get; set; }

Property Value

bool