We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e078ab commit 174aa09Copy full SHA for 174aa09
1 file changed
src/ToCode/Property.cs
@@ -100,26 +100,6 @@ public virtual void SetValue(object? value)
100
{
101
value = AdjustValueBeingSet(value);
102
103
- // if a Line and changing Orientation then also flip
104
- // the Height/Width and set appropriate new rune
105
- if (this.PropertyInfo.Name == nameof(Line.Orientation)
106
- && this.Design.View is Line v && value is Orientation newOrientation)
107
- {
108
- switch (newOrientation)
109
110
- case Orientation.Horizontal:
111
- v.Width = v.Height;
112
- v.Height = 1;
113
-
114
- break;
115
- case Orientation.Vertical:
116
- v.Height = v.Width;
117
- v.Width = 1;
118
119
- default:
120
- throw new ArgumentException($"Unknown Orientation {newOrientation}");
121
- }
122
123
124
this.PropertyInfo.SetValue(this.DeclaringObject, value);
125
0 commit comments