25 references to MeasureString
System.Web.DataVisualization (1)
Common\General\GdiGraphics.cs (1)
542
return _graphics.
MeasureString
( text, font );
System.Web.Mobile (2)
UI\MobileControls\Design\Util\GroupLabel.cs (1)
46
Size sz = Size.Ceiling(g.
MeasureString
(text, Font));
UI\MobileControls\Design\Util\ImageCreator.cs (1)
124
int strPelLen = (int) g.
MeasureString
(controlID, boldFont).Width;
System.Windows.Forms (14)
winforms\Managed\System\WinForms\DataGrid.cs (1)
4771
size = (int) g.
MeasureString
(columnName, headerFont).Width + layout.ColumnHeaders.Height + 1; // This is not a bug, the sort triangle's width is equal to it's height.
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
467
Size textSize = new Size((int) g.
MeasureString
(text, this.Font).Width + 2, this.Font.Height + 2);
winforms\Managed\System\WinForms\DataGridParentRows.cs (2)
588
int size = (int) g.
MeasureString
(displayTableName, textFont).Width;
607
int size = (int) g.
MeasureString
(colName, font).Width;
winforms\Managed\System\WinForms\DataGridTable.cs (2)
384
focusedTextWidth = (int) Math.Ceiling(g.
MeasureString
(((string) RelationsList[focusedRelation]), DataGrid.LinkFont).Width);
918
int rwidth = (int) Math.Ceiling(g.
MeasureString
(((string) this.RelationsList[r]), this.DataGrid.LinkFont).Width)
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
334
Size extents = Size.Ceiling(g.
MeasureString
(GetText(value), DataGridTableStyle.DataGrid.Font));
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
246
int titleWidth = (int) graphics.
MeasureString
(title, Font).Width;
winforms\Managed\System\WinForms\Form.cs (1)
4109
float stringWidth = graphics.
MeasureString
(magicString, font).Width;
winforms\Managed\System\WinForms\ListBox.cs (1)
2240
width = (int)(Math.Ceiling(graphics.
MeasureString
(GetItemText(item), this.Font).Width));
winforms\Managed\System\WinForms\ListView.cs (1)
5126
textWidth = Size.Ceiling(g.
MeasureString
(text, this.Font)).Width;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
1426
cacheItems.lastValueTextWidth = (int) g.
MeasureString
(valueString, f).Width;
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
556
Size sz = Size.Ceiling(g.
MeasureString
(text, parent.Font));
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
486
Size textSize = Size.Ceiling(g.
MeasureString
(Text, parent.Font));
System.Windows.Forms.DataVisualization (1)
Common\General\GdiGraphics.cs (1)
542
return _graphics.
MeasureString
( text, font );
System.Workflow.Activities (1)
Designers\StateMachineDesignerPaint.cs (1)
35
textSize = graphics.
MeasureString
(text, font);
System.Workflow.ComponentModel (6)
AuthoringOM\Design\DesignerHelpers.cs (1)
67
textSize = graphics.
MeasureString
(text, font);
AuthoringOM\Design\DesignerWidgets.cs (4)
1341
SizeF size = paletteGraphics.
MeasureString
(itemInfo.Text, Font);
1977
SizeF sizef = graphics.
MeasureString
(itemInfo.Text, Font);
2166
SizeF textSize = graphics.
MeasureString
(SR.GetString(SR.ToolTipString), this.parentControl.Font);
3385
SizeF stringSize = graphics.
MeasureString
(PreviewModeDescription, designerTheme.Font);
AuthoringOM\Design\WorkflowPrinting.cs (1)
265
SizeF stringSize = graphics.
MeasureString
(headerFooter, headerFooterPrintData.Font);