C# Класс Sharpcraft.Library.GUI.Label

A text label displayed on screen.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Font Microsoft.Xna.Framework.Graphics.SpriteFont
ForeColor Microsoft.Xna.Framework.Color
Text string

Открытые методы

Метод Описание
GetCenterPosition ( Vector2 source ) : Vector2

Get center position for this label based on a source rectangle.

GetCenterPosition ( Vector2 source, Vector2 offset ) : Vector2

Get center position for this label based on a source rectangle.

Label ( string text = null, SpriteFont font = null ) : Microsoft.Xna.Framework

Initialize a new label.

Label ( string text, SpriteFont font, Microsoft.Xna.Framework.Color foreColor ) : Microsoft.Xna.Framework

Initialize a new label.

Описание методов

GetCenterPosition() публичный Метод

Get center position for this label based on a source rectangle.
public GetCenterPosition ( Vector2 source ) : Vector2
source Microsoft.Xna.Framework.Vector2 The source rectangle to get center position for.
Результат Microsoft.Xna.Framework.Vector2

GetCenterPosition() публичный Метод

Get center position for this label based on a source rectangle.
public GetCenterPosition ( Vector2 source, Vector2 offset ) : Vector2
source Microsoft.Xna.Framework.Vector2 The source rectangle to get center position for.
offset Microsoft.Xna.Framework.Vector2 defining X and Y offset for the label position.
Результат Microsoft.Xna.Framework.Vector2

Label() публичный Метод

Initialize a new label.
public Label ( string text = null, SpriteFont font = null ) : Microsoft.Xna.Framework
text string Text of the label.
font Microsoft.Xna.Framework.Graphics.SpriteFont Font to use for this label.
Результат Microsoft.Xna.Framework

Label() публичный Метод

Initialize a new label.
public Label ( string text, SpriteFont font, Microsoft.Xna.Framework.Color foreColor ) : Microsoft.Xna.Framework
text string Text of the label.
font Microsoft.Xna.Framework.Graphics.SpriteFont Font to use for this label.
foreColor Microsoft.Xna.Framework.Color Forecolor of this label.
Результат Microsoft.Xna.Framework

Описание свойств

Font публичное свойство

The font to use for this label.
public SpriteFont,Microsoft.Xna.Framework.Graphics Font
Результат Microsoft.Xna.Framework.Graphics.SpriteFont

ForeColor публичное свойство

Forecolor of this label (I.E: Text color).
public Color,Microsoft.Xna.Framework ForeColor
Результат Microsoft.Xna.Framework.Color

Text публичное свойство

The label text.
public string Text
Результат string