颜色,字体,支持redo undo

This commit is contained in:
艾竹
2023-04-08 23:38:01 +08:00
parent 8ad42aec49
commit 2ef5b7a1ed
6 changed files with 110 additions and 14 deletions

View File

@@ -197,6 +197,7 @@ namespace AIStudio.Wpf.DiagramDesigner
#endregion
private string _fontFamily = "Arial";
[CanDo]
public string FontFamily
{
get
@@ -213,6 +214,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private double _fontSize = 12;
[CanDo]
public double FontSize
{
get
@@ -230,6 +232,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private Color _fontColor = Colors.Black;
[CanDo]
public Color FontColor
{
get
@@ -246,7 +249,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private FontWeight _fontWeight = FontWeights.Regular;
[CanDo]
public FontWeight FontWeight
{
get
@@ -263,6 +266,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private FontStyle _fontStyle = FontStyles.Normal;
[CanDo]
public FontStyle FontStyle
{
get
@@ -279,7 +283,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private FontStretch _fontStretch = FontStretches.Normal;
[CanDo]
public FontStretch FontStretch
{
get
@@ -296,6 +300,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private bool _underline;
[CanDo]
public bool Underline
{
get
@@ -316,6 +321,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private bool _strikethrough;
[CanDo]
public bool Strikethrough
{
get
@@ -336,6 +342,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private bool _overLine;
[CanDo]
public bool OverLine
{
get
@@ -356,7 +363,6 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private TextDecorationCollection _textDecorations;
public TextDecorationCollection TextDecorations
{
get
@@ -383,6 +389,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private Color _textEffectColor = Colors.Transparent;
[CanDo]
public Color TextEffectColor
{
get { return _textEffectColor; }
@@ -397,6 +404,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private Color _highlightColor = Colors.Transparent;
[CanDo]
public Color HighlightColor
{
get { return _highlightColor; }
@@ -411,6 +419,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private FontCase _fontCase = FontCase.None;
[CanDo]
public FontCase FontCase
{
get
@@ -427,6 +436,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private HorizontalAlignment _horizontalAlignment = HorizontalAlignment.Center;
[CanDo]
public HorizontalAlignment HorizontalAlignment
{
get
@@ -443,6 +453,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private VerticalAlignment _verticalAlignment = VerticalAlignment.Center;
[CanDo]
public VerticalAlignment VerticalAlignment
{
get
@@ -459,6 +470,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private double _lineHeight = Double.NaN;
[CanDo]
public double LineHeight
{
get