FontText Text Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Fonts
Assembly: DeltaEngine.Rendering2D.Fonts (in DeltaEngine.Rendering2D.Fonts.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public string Text { get; set; }

Property Value

Type: String
Remarks

Tests: DeltaEngine.Rendering2D.Fonts.Tests.FontTextTests
Examples

10 unit tests call DeltaEngine.Rendering2D.Fonts.FontText.Text
[Test, ApproveFirstFrameScreenshot]
public void TextShouldSayChangedText()
{
    new FontText(tahoma, "To be changed", Rectangle.One) { Text = "Changed\nText" };
}
[Test, ApproveFirstFrameScreenshot]
public void TextShouldBeInTheMiddleOfTheScreen()
{
    new FontText(tahoma, "Middle", Rectangle.Zero) { DrawArea = Rectangle.One };
}
[Test, ApproveFirstFrameScreenshot]
public void MultiLineTextCentrallyAligned()
{
    new FontText(verdana, "Text\ncentrally\naligned", Center);
}
See Also