1 write to SwitchHeight
System.Windows.Forms (1)
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (1)
476
SwitchHeight
= switchHeight;
4 references to SwitchHeight
System.Windows.Forms (4)
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (4)
162
int totalHeight = Math.Max(textSize.Height, metrics.
SwitchHeight
);
164
int switchY = contentTop + ((totalHeight - metrics.
SwitchHeight
) / 2);
173
return new Rectangle(switchX, switchY, metrics.SwitchWidth, metrics.
SwitchHeight
);
538
Math.Max(
SwitchHeight
, textSize.Height) + control.Padding.Vertical);