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