39 references to Height
System.Windows.Forms (22)
System\Windows\Forms\Control.cs (5)
1936
Properties.AddValue(s_fontHeightProperty, (value is null) ? -1 : value.
Height
);
2056
return Properties.AddValue(s_fontHeightProperty, font.
Height
);
2070
localFontHeight = Font.
Height
;
3009
Properties.AddValue(s_fontHeightProperty, (value is null) ? -1 : value.
Height
);
10812
Properties.AddValue(s_fontHeightProperty, scaledFont.
Height
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
157
s_defaultHeight = Control.DefaultFont.
Height
+ 9;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
150
_fontHeight = Font.
Height
;
157
_fontHeight = Font.
Height
;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (3)
208
boxBounds.Y += font.
Height
/ 2;
209
boxBounds.Height -= font.
Height
/ 2;
314
boxTop += font.
Height
/ 2;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
151
return Font.
Height
+ _listItemBordersHeight;
478
if (Font.
Height
< 0)
640
float tabDistance = 3.6f * Font.
Height
; // about 7 characters
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
367
s_defaultListBoxItemHeight = DefaultFont.
Height
;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5074
rectInvalid.Inflate(1, Font.
Height
+ 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
95
int lineHeight = (int)(1.5 * Font.
Height
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
134
_lineHeight = Font.
Height
+ LogicalToDeviceUnits(2);
238
_lineHeight = Font.
Height
+ 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
460
_cachedRowHeight = Font.
Height
+ 2;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
258
int fontHeight = Owner.Font.
Height
;
System\Windows\Forms\Form.cs (1)
3778
float height = font.
Height
;
System.Windows.Forms.Design (17)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
204
_listBox.ItemHeight = Font.
Height
+ SystemInformation.BorderSize.Width * 2;
229
int w = 4 + charactersInNumber * (Font.
Height
/ 2);
581
int w = 4 + charactersInNumber * (Font.
Height
/ 2);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
242
Math.Min(Font.
Height
* 10, workingArea.Height / 3));
System\Drawing\Design\ColorEditor.ColorUI.cs (4)
95
_lbSystem.ItemHeight = Font.
Height
+ 2;
96
_lbCommon.ItemHeight = Font.
Height
+ 2;
263
lb.ItemHeight = lb.Font.
Height
;
268
lb.ItemHeight = lb.Font.
Height
;
System\Drawing\Design\CursorEditor.CursorUI.cs (2)
25
ItemHeight = Math.Max(4 + Cursors.Default.Size.Height, Font.
Height
);
77
e.Graphics.DrawString(text, font, brushText, e.Bounds.X + cursorWidth + 4, e.Bounds.Y + (e.Bounds.Height - font.
Height
) / 2);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2275
Math.Max(SystemInformation.ToolWindowCaptionHeight - SystemInformation.BorderSize.Height - 2, Control.Font.
Height
),
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
47
_sampleDataGridViewSelected.Size = new Drawing.Size(100, Font.
Height
+ 9);
48
_sampleDataGridView.Size = new Drawing.Size(100, Font.
Height
+ 9);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
809
_selectedColumns.ItemHeight = Font.
Height
+ OWNERDRAWVERTICALBUFFER;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
437
_newItemTypes.ItemHeight = Math.Max(s_iconHeight, Font.
Height
);
549
dropDownHeight += (Font.
Height
+ s_separatorHeight) + 2 * s_imagePaddingY;
637
e.ItemHeight = Math.Max(s_iconHeight + separator, measureFont.
Height
+ separator) + 2 * s_imagePaddingY;