mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-06-30 09:40:52 +02:00
Many new plays
This commit is contained in:
31
PropertyPresenter2/TextComponent.cs
Normal file
31
PropertyPresenter2/TextComponent.cs
Normal file
@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user