Override AutoSize for derived Label Control in C#
问题 I am trying to extend the System.Windows.Forms.Label class to support vertically drawn text. I do this by creating a new property called MyLabelOrientation that the user can set to Horizontal or Vertical. When the user changes this setting, the values for width and height are swapped to resize the control to its new orientation. Finally, I override the OnPaint function to draw my Label. I would like to extend the AutoSize property for this control as well so that my Label will auto-size to