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
Color
The color of the text.
public Color Color { get; set; }
Property Value
FontFamily
The font family used for the text.
public string FontFamily { get; set; }
Property Value
HorizontalAlignment
The horizontal alignment of the text.
public TextHorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Italic
Whether the text is italic.
public bool Italic { get; set; }
Property Value
Kerning
Whether kerning should be used while rendering the text.
public bool Kerning { get; set; }
Property Value
PixelSize
The size of the font in pixels.
public int PixelSize { get; set; }
Property Value
Strikeout
Whether a line should be drawn through the text.
public bool Strikeout { get; set; }
Property Value
Text
The text to be displayed.
public string Text { get; set; }
Property Value
Underline
Whether a line should be drawn below the text.
public bool Underline { get; set; }
Property Value
VerticalAlignment
The vertical alignment of the text.
public TextVerticalAlignment VerticalAlignment { get; set; }
Property Value
Wrap
Whether word wrapping is enabled.
public bool Wrap { get; set; }