281 references to Graphics
System.Web.Mobile (1)
UI\MobileControls\Design\Util\GroupLabel.cs (1)
35
Graphics g = e.
Graphics
;
System.Windows.Forms (197)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (3)
693
e.
Graphics
.FillRectangle(background, bounds);
703
Graphics g = e.
Graphics
;
715
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (6)
34
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
46
Graphics g = e.
Graphics
;
116
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
127
Graphics g = e.
Graphics
;
194
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
206
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (6)
25
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
28
Graphics g = e.
Graphics
;
64
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
67
Graphics g = e.
Graphics
;
125
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
128
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (8)
68
ButtonRenderer.DrawParentBackground(e.
Graphics
, bounds, Control);
73
ButtonRenderer.DrawButton(e.
Graphics
, Control.ClientRectangle, false, pbState);
76
ButtonRenderer.DrawButtonForHandle(e.
Graphics
, Control.ClientRectangle, false, pbState, this.Control.HandleInternal);
111
color = e.
Graphics
.GetNearestColor(color);
118
e.
Graphics
.FillRectangle(brush, bounds);
127
ControlPaint.DrawBackgroundImage(e.
Graphics
, Control.BackgroundImage, Color.Transparent, Control.BackgroundImageLayout, Control.ClientRectangle, bounds, Control.DisplayRectangle.Location, Control.RightToLeft);
136
ColorData colors = PaintRender(e.
Graphics
).Calculate();
147
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (7)
53
using (WindowsGraphics wg = WindowsGraphics.FromGraphics( e.
Graphics
)) {
68
DrawDitheredFill(e.
Graphics
, colors.buttonFace, checkBackground, bounds);
71
using( WindowsGraphics wg = WindowsGraphics.FromGraphics( e.
Graphics
)) {
119
DrawDitheredFill(e.
Graphics
, colors.buttonFace, checkBackground, bounds);
122
DrawCheckBackground(Control.Enabled, Control.CheckState, e.
Graphics
, bounds, checkColor, checkBackground, disabledColors, colors);
127
DrawCheckOnly(flatCheckSize, Control.Checked, Control.Enabled, Control.CheckState, e.
Graphics
, layout, colors, checkColor, checkBackground);
216
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (5)
26
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
41
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
56
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
66
System.Drawing.Graphics g = e.
Graphics
;
90
layout.checkSize = (int)(flatCheckSize * GetDpiScaleRatio(e.
Graphics
));
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (14)
29
System.Drawing.Graphics g = e.
Graphics
;
30
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
33
Region original = e.
Graphics
.Clip;
39
DrawFlatBorder(e.
Graphics
, layout.checkBounds,
49
System.Drawing.Graphics g = e.
Graphics
;
55
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
58
Region original = e.
Graphics
.Clip;
68
e.
Graphics
.Clip = original;
69
e.
Graphics
.ExcludeClip(layout.checkArea);
83
System.Drawing.Graphics g = e.
Graphics
;
84
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
87
Region original = e.
Graphics
.Clip;
138
layout.checkSize = (int)(flatCheckSize * GetDpiScaleRatio(e.
Graphics
) + 1);
141
layout.checkSize = (int)(flatCheckSize * GetDpiScaleRatio(e.
Graphics
));
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (2)
27
ColorData colors = PaintRender(e.
Graphics
).Calculate();
123
layout.checkSize = (int)(layout.checkSize * GetDpiScaleRatio(e.
Graphics
));
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (6)
35
Graphics g = e.
Graphics
;
74
double scale = GetDpiScaleRatio(e.
Graphics
);
76
using( WindowsGraphics wg = WindowsGraphics.FromGraphics(e.
Graphics
) ) {
141
double scale = GetDpiScaleRatio(e.
Graphics
);
142
using( WindowsGraphics wg = WindowsGraphics.FromGraphics(e.
Graphics
) ) {
178
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (5)
29
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
45
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
61
ColorData colors = PaintFlatRender(e.
Graphics
).Calculate();
71
System.Drawing.Graphics g = e.
Graphics
;
90
layout.checkSize = (int)(flatCheckSize * GetDpiScaleRatio(e.
Graphics
));
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (6)
21
System.Drawing.Graphics g = e.
Graphics
;
27
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
43
System.Drawing.Graphics g = e.
Graphics
;
49
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
66
System.Drawing.Graphics g = e.
Graphics
;
72
ColorData colors = PaintPopupRender(e.
Graphics
).Calculate();
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonStandardAdapter.cs (2)
25
ColorData colors = PaintRender(e.
Graphics
).Calculate();
80
layout.checkSize = (int)(layout.checkSize * GetDpiScaleRatio(e.
Graphics
));
winforms\Managed\System\WinForms\Control.cs (15)
8521
hdc = e.
Graphics
.GetHdc();
8535
e.
Graphics
.ReleaseHdcInternal(hdc);
9628
ControlPaint.DrawBackgroundImage(e.
Graphics
, BackgroundImage, backColor, BackgroundImageLayout, ClientRectangle, rectangle, scrollLocation, RightToLeft);
9646
WindowsGraphics.FromHdc(e.HDC) : WindowsGraphics.FromGraphics(e.
Graphics
)) {
9662
e.
Graphics
.FillRectangle(brush, rectangle);
9744
e.
Graphics
.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1);
9746
e.
Graphics
.FillRectangle(Brushes.White, rectangle);
9747
e.
Graphics
.DrawLine(pen, clientRectangle.Left, clientRectangle.Top,
9749
e.
Graphics
.DrawLine(pen, clientRectangle.Left, clientRectangle.Bottom,
9768
Graphics g = e.
Graphics
;
9812
np.
Graphics
.Clip = transparentRegion;
9813
np.
Graphics
.TranslateClip(-shift.X, -shift.Y);
9822
np.
Graphics
.TranslateClip(shift.X, shift.Y);
13735
state = pevent.
Graphics
.Save();
13752
pevent.
Graphics
.Restore(state);
winforms\Managed\System\WinForms\DataGrid.cs (1)
4410
Graphics g = pe.
Graphics
;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
17121
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\Form.cs (3)
5067
sizeGripRenderer.DrawBackground(e.
Graphics
, new Rectangle(sz.Width - SizeGripSize, sz.Height - SizeGripSize, SizeGripSize, SizeGripSize));
5070
ControlPaint.DrawSizeGrip(e.
Graphics
, BackColor, sz.Width - SizeGripSize, sz.Height - SizeGripSize, SizeGripSize, SizeGripSize);
5075
e.
Graphics
.FillRectangle(SystemBrushes.AppWorkspace, ClientRectangle);
winforms\Managed\System\WinForms\GroupBox.cs (3)
537
GroupBoxRenderer.DrawGroupBox(e.
Graphics
, new Rectangle(0, 0, Width, Height), Text, Font, textcolor, textFlags, gbState);
540
GroupBoxRenderer.DrawGroupBox(e.
Graphics
, new Rectangle(0, 0, Width, Height), Text, Font, textFlags, gbState);
550
Graphics graphics = e.
Graphics
;
winforms\Managed\System\WinForms\Label.cs (7)
1520
DrawImage(e.
Graphics
, i, face, RtlTranslateAlignment(ImageAlign));
1524
IntPtr hdc = e.
Graphics
.GetHdc();
1531
e.
Graphics
.ReleaseHdc();
1549
e.
Graphics
.DrawString(Text, Font, brush, face, stringFormat);
1553
ControlPaint.DrawStringDisabled(e.
Graphics
, Text, Font, color, face, stringFormat);
1561
TextRenderer.DrawText(e.
Graphics
, Text, Font, face, color, flags);
1568
TextRenderer.DrawText(e.
Graphics
, Text, Font, face, disabledTextForeColor, flags);
winforms\Managed\System\WinForms\LinkLabel.cs (28)
1133
EnsureRun(e.
Graphics
);
1138
PaintLinkBackground(e.
Graphics
);
1159
PaintLinkBackground(e.
Graphics
);
1164
Region originalClip = e.
Graphics
.Clip;
1169
e.
Graphics
.Clip = originalClip;
1170
RectangleF[] rects = ((Link)links[0]).VisualRegion.GetRegionScans(e.
Graphics
.Transform);
1192
e.
Graphics
.ExcludeClip(region);
1199
e.
Graphics
.ExcludeClip(link.VisualRegion);
1209
PaintLink(e.
Graphics
, null, foreBrush, linkBrush, optimizeBackgroundRendering, finalrect);
1213
PaintLink(e.
Graphics
, link, foreBrush, linkBrush, optimizeBackgroundRendering, finalrect);
1217
e.
Graphics
.Clip = originalClip;
1218
e.
Graphics
.ExcludeClip(this.textRegion);
1219
PaintLinkBackground(e.
Graphics
);
1223
e.
Graphics
.Clip = originalClip;
1234
Region originalClip = e.
Graphics
.Clip;
1240
PaintLinkBackground(e.
Graphics
);
1241
e.
Graphics
.IntersectClip(this.textRegion);
1250
ControlPaint.DrawStringDisabled(e.
Graphics
, Text, Font, DisabledColor, ClientRectWithPadding, stringFormat);
1253
IntPtr hdc = e.
Graphics
.GetHdc();
1260
e.
Graphics
.ReleaseHdc();
1264
ControlPaint.DrawStringDisabled(e.
Graphics
, Text, Font, foreColor, clientRectWidthPadding, CreateTextFormatFlags(clientRectWidthPadding.Size));
1268
e.
Graphics
.Clip = originalClip;
1287
Region oldClip = e.
Graphics
.Clip;
1289
e.
Graphics
.ExcludeClip(imageBounds);
1294
e.
Graphics
.Clip = oldClip;
1297
e.
Graphics
.IntersectClip(imageBounds);
1300
DrawImage(e.
Graphics
, i, ClientRectangle, RtlTranslateAlignment(ImageAlign));
1303
e.
Graphics
.Clip = oldClip;
winforms\Managed\System\WinForms\PictureBox.cs (1)
1330
pe.
Graphics
.DrawImage(image, drawingRect);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (11)
542
pevent.
Graphics
.FillRectangle(backBrush, ClientRectangle);
554
pevent.
Graphics
.DrawString(SR.GetString(SR.PrintPreviewExceptionPrinting), Font, brush, ClientRectangle, format);
557
pevent.
Graphics
.DrawString(SR.GetString(SR.PrintPreviewNoPages), Font, brush, ClientRectangle, format);
588
Region originalClip = pevent.
Graphics
.Clip;
622
pevent.
Graphics
.ExcludeClip(pageRenderArea[imageIndex - StartPage]);
627
pevent.
Graphics
.FillRectangle(backBrush, ClientRectangle);
630
pevent.
Graphics
.Clip = originalClip;
636
pevent.
Graphics
.DrawRectangle(Pens.Black, box);
638
pevent.
Graphics
.FillRectangle(brush, box);
642
pevent.
Graphics
.DrawImage(pageInfo[i + StartPage].Image, box);
646
pevent.
Graphics
.DrawRectangle(Pens.Black, box);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1737
e.
Graphics
.DrawRectangle(pen, rect);
winforms\Managed\System\WinForms\PropertyGrid.cs (5)
3297
pevent.
Graphics
.FillRectangle(background, new Rectangle(0,0,width, psheetLoc.Y));
3303
pevent.
Graphics
.FillRectangle(background, new Rectangle(0, yLast, width, hotcommands.Location.Y - yLast));
3309
pevent.
Graphics
.FillRectangle(background, new Rectangle(0, yLast, width, doccomment.Location.Y - yLast));
3314
pevent.
Graphics
.FillRectangle(background, new Rectangle(0, yLast, width, Size.Height - yLast));
5070
e.
Graphics
.DrawRectangle(borderPen, r);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (6)
99
pevent.
Graphics
.FillRectangle(SystemBrushes.Window, dropDownButtonRect);
102
ComboBoxRenderer.DrawDropDownButton(pevent.
Graphics
, dropDownButtonRect, cbState);
105
ComboBoxRenderer.DrawDropDownButtonForHandle(pevent.
Graphics
, dropDownButtonRect, cbState, this.HandleInternal);
114
ControlPaint.DrawFocusRectangle(pevent.
Graphics
, dropDownButtonRect, ForeColor, BackColor);
199
DDB_Draw3DBorder(pevent.
Graphics
, Control.ClientRectangle, true);
205
ControlPaint.DrawBorder(pevent.
Graphics
, rect,
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (4)
3444
Graphics g = pe.
Graphics
;
5916
pe.
Graphics
.DrawImage(GetSizeGripGlyph(pe.
Graphics
), lRect);
5922
pe.
Graphics
.DrawLine(pen, 0, y, Width, y);
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
765
ControlPaint.DrawBackgroundImage(e.
Graphics
, BackgroundImage, BackColor, BackgroundImageLayout, displayRect, displayRect, displayRect.Location);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1384
DrawFocus(e.
Graphics
,SplitterRectangle);
winforms\Managed\System\WinForms\StatusStrip.cs (1)
328
Renderer.DrawStatusStripSizingGrip(new ToolStripRenderEventArgs(e.
Graphics
, this));
winforms\Managed\System\WinForms\TableLayoutPanel.cs (1)
415
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\TabPage.cs (2)
720
TabRenderer.DrawTabPage(e.
Graphics
, rectWithBorder);
725
ControlPaint.DrawBackgroundImage(e.
Graphics
, BackgroundImage, bkcolor, BackgroundImageLayout, inflateRect, inflateRect, DisplayRectangle.Location);
winforms\Managed\System\WinForms\ToolStrip.cs (3)
3628
Graphics toolstripGraphics = e.
Graphics
;
3809
Graphics g = e.
Graphics
;
3849
Renderer.DrawGrip(new ToolStripGripRenderEventArgs(e.
Graphics
, this));
winforms\Managed\System\WinForms\ToolStripButton.cs (3)
254
renderer.DrawButtonBackground(new ToolStripItemRenderEventArgs(e.
Graphics
, this));
257
ToolStripItemImageRenderEventArgs rea = new ToolStripItemImageRenderEventArgs(e.
Graphics
, this, InternalLayout.ImageRectangle);
263
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(e.
Graphics
, this, this.Text, InternalLayout.TextRectangle, this.ForeColor, this.Font, InternalLayout.TextFormat));
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (1)
368
ToolStripContentPanelRenderEventArgs rea = new ToolStripContentPanelRenderEventArgs(e.
Graphics
, this);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
167
Graphics g = e.
Graphics
;
169
renderer.DrawDropDownButtonBackground(new ToolStripItemRenderEventArgs(e.
Graphics
, this));
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
601
Renderer.DrawImageMargin(new ToolStripRenderEventArgs(e.
Graphics
, this, this.ImageMargin, SystemColors.Control));
winforms\Managed\System\WinForms\ToolStripLabel.cs (3)
304
renderer.DrawLabelBackground(new ToolStripItemRenderEventArgs(e.
Graphics
, this));
307
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(e.
Graphics
, this, InternalLayout.ImageRectangle));
309
PaintText(e.
Graphics
);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1057
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
139
renderer.DrawOverflowButtonBackground(new ToolStripItemRenderEventArgs(e.
Graphics
, this));
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
517
ToolStripPanelRenderEventArgs rea = new ToolStripPanelRenderEventArgs(e.
Graphics
, this);
881
Renderer.DrawToolStripBackground(new ToolStripRenderEventArgs(e.
Graphics
, this));
882
Renderer.DrawToolStripBorder(new ToolStripRenderEventArgs(e.
Graphics
, this));
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
442
this.Renderer.DrawSeparator(new ToolStripSeparatorRenderEventArgs(e.
Graphics
, this, IsVertical));
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
607
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (3)
237
renderer.DrawToolStripStatusLabelBackground(new ToolStripItemRenderEventArgs(e.
Graphics
, this));
240
renderer.DrawItemImage(new ToolStripItemImageRenderEventArgs(e.
Graphics
, this, InternalLayout.ImageRectangle));
243
PaintText(e.
Graphics
);
winforms\Managed\System\WinForms\UpDownBase.cs (12)
819
vsr.DrawBackground(e.
Graphics
, bounds, clipLeft, HandleInternal);
820
vsr.DrawBackground(e.
Graphics
, bounds, clipTop, HandleInternal);
821
vsr.DrawBackground(e.
Graphics
, bounds, clipRight, HandleInternal);
822
vsr.DrawBackground(e.
Graphics
, bounds, clipBottom, HandleInternal);
830
e.
Graphics
.DrawRectangle(pen, backRect);
847
e.
Graphics
.DrawRectangle(pen, backRect);
856
ControlPaint.DrawBorder(e.
Graphics
, editBounds, SystemColors.Control, ButtonBorderStyle.Solid);
1706
vsr.DrawBackground(e.
Graphics
, new Rectangle(0, 0, parent.defaultButtonsWidth, half_height), HandleInternal);
1718
vsr.DrawBackground(e.
Graphics
, new Rectangle(0, half_height, parent.defaultButtonsWidth, half_height), HandleInternal);
1721
ControlPaint.DrawScrollButton(e.
Graphics
,
1726
ControlPaint.DrawScrollButton(e.
Graphics
,
1736
e.
Graphics
.DrawLine(pen, clientRect.Left, clientRect.Bottom - 1, clientRect.Right - 1, clientRect.Bottom - 1);
System.Windows.Forms.DataVisualization (10)
WinForm\ChartWinControl.cs (10)
394
chartPicture.Paint(e.
Graphics
, false);
396
chartPicture.Paint(e.
Graphics
, this.paintTopLevelElementOnly);
401
DrawException(e.
Graphics
);
424
float scaleX = e.
Graphics
.Transform.Elements[0];
425
float scaleY = e.
Graphics
.Transform.Elements[3];
439
paintBufferBitmap = new Bitmap((int)(ClientRectangle.Width * scaleX), (int)(ClientRectangle.Height * scaleY), e.
Graphics
);
469
System.Drawing.Drawing2D.Matrix oldMatrix = e.
Graphics
.Transform;
471
e.
Graphics
.Transform = drawingMatrix;
474
e.
Graphics
.DrawImage(paintBufferBitmap, 0, 0);
475
e.
Graphics
.Transform = oldMatrix;
System.Workflow.ComponentModel (68)
AuthoringOM\Design\ActivityDesigner.cs (6)
2974
Region oldRegion = e.
Graphics
.Clip;
2981
ActivityDesignerPaintEventArgs eventArgs = new ActivityDesignerPaintEventArgs(e.
Graphics
, bounds, viewPort, DesignerTheme);
2983
e.
Graphics
.Clip = clipRegion;
2985
e.
Graphics
.Clip = oldRegion;
3001
e.
Graphics
.Clip = oldRegion;
3004
ActivityDesignerPaint.DrawInvalidDesignerIndicator(e.
Graphics
, this);
AuthoringOM\Design\DesignerWidgets.cs (21)
1223
Graphics graphics = paintArgs.
Graphics
;
1423
ActivityDesignerPaint.DrawDropShadow(e.
Graphics
, rectangle, Color.Black, AmbientTheme.DropShadowWidth, LightSourcePosition.Left | LightSourcePosition.Top, 0.2f, false);
1619
e.
Graphics
.DrawLine(SystemPens.ControlLightLight, 0, 0, 0, this.splitter.Height);
1620
e.
Graphics
.DrawLine(SystemPens.ControlLightLight, 0, 0, SplitterSize - 1, 0);
1622
e.
Graphics
.DrawLine(SystemPens.ControlDark, SplitterSize - 2, 0, SplitterSize - 2, this.splitter.Height - 1);
1623
e.
Graphics
.DrawLine(SystemPens.ControlDark, SplitterSize - 2, this.splitter.Height - 1, 0, this.splitter.Height - 1);
1625
e.
Graphics
.DrawLine(SystemPens.ControlText, SplitterSize - 1, 0, SplitterSize - 1, this.splitter.Height);
1629
e.
Graphics
.DrawLine(SystemPens.ControlLightLight, 0, 1, this.splitter.Width, 1);
1630
e.
Graphics
.DrawLine(SystemPens.ControlLightLight, 0, 1, 0, SplitterSize - 1);
1632
e.
Graphics
.DrawLine(SystemPens.ControlDark, 0, SplitterSize - 2, this.splitter.Width, SplitterSize - 2);
1633
e.
Graphics
.DrawLine(SystemPens.ControlDark, this.splitter.Width - 1, SplitterSize - 2, this.splitter.Width - 1, 1);
1635
e.
Graphics
.DrawLine(SystemPens.ControlText, 0, SplitterSize - 1, this.splitter.Width, SplitterSize - 1);
1876
e.
Graphics
.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
1899
e.
Graphics
.FillRectangle(backgroundBrush, tabItemRectangle);
1900
e.
Graphics
.DrawRectangle(SystemPens.Highlight, tabItemRectangle);
1908
e.
Graphics
.FillRectangle(backgroundBrush, tabItemRectangle);
1909
e.
Graphics
.DrawRectangle(SystemPens.ControlDarkDark, tabItemRectangle);
1915
e.
Graphics
.DrawImage(tabItem.Image, tabImageRectangle);
1928
e.
Graphics
.DrawString(tabItem.Text, Font, SystemBrushes.ControlText, tabTextRectangleF, stringFormat);
1932
using (Bitmap bitmap = new Bitmap(tabTextRectangle.Height, tabTextRectangle.Width, e.
Graphics
))
1939
e.
Graphics
.DrawImage(bitmap, tabTextRectangle);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (6)
545
e.
Graphics
.DrawRectangle(SystemPens.ControlDark, 0, 0, this.themePanel.ClientSize.Width - 1, this.themePanel.ClientSize.Height - 2);
551
e.
Graphics
.DrawLine(SystemPens.ControlDark, top, bottom);
558
e.
Graphics
.DrawLine(framePen, this.designerPreview.Left - margin.Width, this.designerPreview.Top - 1, this.designerPreview.Right + margin.Width, this.designerPreview.Top - 1);
559
e.
Graphics
.DrawLine(framePen, this.designerPreview.Left - margin.Width, this.designerPreview.Bottom + 1, this.designerPreview.Right + margin.Width, this.designerPreview.Bottom + 1);
560
e.
Graphics
.DrawLine(framePen, this.designerPreview.Left - 1, this.designerPreview.Top - margin.Height, this.designerPreview.Left - 1, this.designerPreview.Bottom + margin.Height);
561
e.
Graphics
.DrawLine(framePen, this.designerPreview.Right + 1, this.designerPreview.Top - margin.Height, this.designerPreview.Right + 1, this.designerPreview.Bottom + margin.Height);
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (8)
510
paintArgs.
Graphics
.DrawLine(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.Right, lineRectangle.Bottom);
511
paintArgs.
Graphics
.DrawLine(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.Right, lineRectangle.Bottom + 1);
515
paintArgs.
Graphics
.DrawLine(SystemPens.ControlDark, lineRectangle.Left, lineRectangle.Bottom, lineRectangle.Right, lineRectangle.Bottom);
516
paintArgs.
Graphics
.DrawLine(SystemPens.ControlLightLight, lineRectangle.Left, lineRectangle.Bottom + 1, lineRectangle.Right, lineRectangle.Bottom + 1);
519
paintArgs.
Graphics
.DrawLine(SystemPens.WindowFrame, this.helpTextHolder.Left - 1, this.helpTextHolder.Top - 1, this.helpTextHolder.Left - 1, this.helpTextHolder.Bottom);
520
paintArgs.
Graphics
.DrawLine(SystemPens.WindowFrame, this.helpTextHolder.Left - 1, this.helpTextHolder.Bottom, this.helpTextHolder.Right, this.helpTextHolder.Bottom);
521
paintArgs.
Graphics
.DrawLine(SystemPens.WindowFrame, this.helpTextHolder.Right, this.helpTextHolder.Bottom, this.helpTextHolder.Right, this.helpTextHolder.Top - 1);
522
paintArgs.
Graphics
.DrawLine(SystemPens.WindowFrame, this.helpTextHolder.Right, this.helpTextHolder.Top - 1, this.helpTextHolder.Left - 1, this.helpTextHolder.Top - 1);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (1)
67
DrawScrollIndicators(e.
Graphics
);
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (3)
238
connector.OnPaintSelected(new ActivityDesignerPaintEventArgs(e.
Graphics
, connector.ParentDesigner.Bounds, viewPort, connector.ParentDesigner.DesignerTheme), (selectedComponents == selectionService.PrimarySelection), new Point[] { });
248
editableConnector.OnPaint(new ActivityDesignerPaintEventArgs(e.
Graphics
, selectedConnector.ParentDesigner.Bounds, viewPort, selectedConnector.ParentDesigner.DesignerTheme), true, true);
255
this.connectorEditor.OnPaint(new ActivityDesignerPaintEventArgs(e.
Graphics
, designer.Bounds, viewPort, designer.DesignerTheme), false, false);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
608
ActivityDesignerPaint.DrawImage(e.
Graphics
, this.dragImage, new Rectangle(this.dragImagePointInClientCoOrd, this.dragImage.Size), new Rectangle(0, 0, this.dragImage.Width, this.dragImage.Height), DesignerContentAlignment.Center, (this.dragImageSnapped) ? 1.0f : 0.5f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (2)
121
e.
Graphics
.FillRectangle(dragRectangleBrush, dragRectangle.X, dragRectangle.Y, dragRectangle.Width - 1, dragRectangle.Height - 1);
122
e.
Graphics
.DrawRectangle(ambientTheme.SelectionForegroundPen, dragRectangle.X, dragRectangle.Y, dragRectangle.Width - 1, dragRectangle.Height - 1);
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (4)
301
GraphicsContainer graphicsState = e.
Graphics
.BeginContainer();
303
e.
Graphics
.TranslateTransform(actionLocation.X, actionLocation.Y);
304
this.actions[i].Draw(e.
Graphics
);
305
e.
Graphics
.EndContainer(graphicsState);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (4)
160
Region oldRegion = eventArgs.
Graphics
.Clip;
161
eventArgs.
Graphics
.Clip = clipRegion;
170
ActivityDesignerPaint.DrawImage(eventArgs.
Graphics
, this.draggedDesignerImages[i], new Rectangle(new Point(locations[i].X - 2 * ambientTheme.Margin.Width, locations[i].Y - 2 * ambientTheme.Margin.Height), imageSize), new Rectangle(Point.Empty, imageSize), DesignerContentAlignment.Fill, 0.4f, false);
173
eventArgs.
Graphics
.Clip = oldRegion;
AuthoringOM\Design\WorkflowLayouts.cs (5)
134
Graphics graphics = e.
Graphics
;
189
Graphics graphics = e.
Graphics
;
231
Graphics graphics = e.
Graphics
;
514
Graphics graphics = e.
Graphics
;
584
Graphics graphics = e.
Graphics
;
AuthoringOM\Design\WorkflowView.cs (7)
1024
GraphicsContainer graphicsState = e.
Graphics
.BeginContainer();
1025
e.
Graphics
.SmoothingMode = SmoothingMode.HighQuality;
1026
e.
Graphics
.InterpolationMode = InterpolationMode.HighQualityBicubic;
1027
e.
Graphics
.CompositingQuality = CompositingQuality.HighQuality;
1034
this.viewPortBitmap = new Bitmap(Math.Max(1, ViewPortSize.Width), Math.Max(1, ViewPortSize.Height), e.
Graphics
);
1080
e.
Graphics
.EndContainer(graphicsState);
1082
e.
Graphics
.FillRectangle(SystemBrushes.Control, new Rectangle(Width - SystemInformation.VerticalScrollBarWidth, Height - SystemInformation.HorizontalScrollBarHeight, SystemInformation.VerticalScrollBarWidth, SystemInformation.HorizontalScrollBarHeight));
System.WorkflowServices (5)
System\Workflow\Activities\Design\GradientPanel.cs (5)
75
e.
Graphics
.SmoothingMode = SmoothingMode.HighQuality;
92
Graphics outputGraphics = e.
Graphics
;
97
e.
Graphics
.FillPath(frameBrush, RoundedRect(frameRect));
100
e.
Graphics
.FillPath(glossBrush, RoundedRectTopHalf(frameRect));
102
e.
Graphics
.DrawPath(new Pen(this.BorderColor), RoundedRect(frameRect));