mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-04-16 21:43:51 +02:00
32 lines
770 B
C#
32 lines
770 B
C#
using System.Windows;
|
|
|
|
namespace LsBricks.ElementMVVM.Types
|
|
{
|
|
/// <summary>
|
|
/// A component of the symbol
|
|
/// </summary>
|
|
public readonly struct TextComponent
|
|
{
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="text"></param>
|
|
/// <param name="style"></param>
|
|
public TextComponent(string text, BaselineAlignment style = BaselineAlignment.Baseline)
|
|
{
|
|
Text = text;
|
|
Style = style;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Text of the symbol component
|
|
/// </summary>
|
|
public readonly string Text;
|
|
|
|
/// <summary>
|
|
/// Style of the symbol component
|
|
/// </summary>
|
|
public readonly BaselineAlignment Style;
|
|
}
|
|
}
|