System.Windows.Forms.ListBox.OnFontChanged C# (CSharp) Method

OnFontChanged() protected method

protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs
return void
		protected override void OnFontChanged (EventArgs e)
		{
			base.OnFontChanged (e);

			if (use_tabstops)
				StringFormat.SetTabStops (0, new float [] {(float)(Font.Height * 3.7)});

			if (explicit_item_height) {
				base.Refresh ();
			} else {
				tableView.Font = Font.ToNsFont();
				item_height = (int) tableView.RowHeight;
				if (IntegralHeight)
					UpdateListBoxBounds ();
				LayoutListBox ();
			}
		}