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