diff --git a/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/MonthCalendarDesigner.cs b/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/MonthCalendarDesigner.cs
index 66722b1138c..216d77f7590 100644
--- a/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/MonthCalendarDesigner.cs
+++ b/src/System.Windows.Forms.Design/src/System/Windows/Forms/Design/MonthCalendarDesigner.cs
@@ -1,34 +1,33 @@
-namespace System.Windows.Forms.Design
+namespace System.Windows.Forms.Design;
+
+internal class MonthCalendarDesigner : ControlDesigner
{
- internal class MonthCalendarDesigner : ControlDesigner
+ public MonthCalendarDesigner()
{
- public MonthCalendarDesigner()
- {
- AutoResizeHandles = true;
- }
+ AutoResizeHandles = true;
+ }
- ///
- /// Retrieves a set of rules concerning the movement capabilities of a component.
- /// This should be one or more flags from the SelectionRules class. If no designer
- /// provides rules for a component, the component will not get any UI services.
- ///
- public override SelectionRules SelectionRules
+ ///
+ /// Retrieves a set of rules concerning the movement capabilities of a component.
+ /// This should be one or more flags from the SelectionRules class. If no designer
+ /// provides rules for a component, the component will not get any UI services.
+ ///
+ public override SelectionRules SelectionRules
+ {
+ get
{
- get
- {
- SelectionRules rules = base.SelectionRules;
+ SelectionRules rules = base.SelectionRules;
- if (Control.Parent is null || !Control.Parent.IsMirrored)
- {
- rules &= ~(SelectionRules.TopSizeable | SelectionRules.LeftSizeable);
- }
- else
- {
- rules &= ~(SelectionRules.TopSizeable | SelectionRules.RightSizeable);
- }
-
- return rules;
+ if (Control.Parent is null || !Control.Parent.IsMirrored)
+ {
+ rules &= ~(SelectionRules.TopSizeable | SelectionRules.LeftSizeable);
}
+ else
+ {
+ rules &= ~(SelectionRules.TopSizeable | SelectionRules.RightSizeable);
+ }
+
+ return rules;
}
}
}