mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-12-15 00:26:23 +01:00
renaming
This commit is contained in:
31
PropertyPresenter/TextComponent.cs
Normal file
31
PropertyPresenter/TextComponent.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace ModernWpfPlayground.PropertyPresenter2
|
||||
{
|
||||
/// <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