4 instantiations of Graphics
System.Drawing (4)
commonui\System\Drawing\Graphics.cs (4)
158
return new
Graphics
(nativeGraphics);
184
return new
Graphics
(gdipNativeGraphics);
218
return new
Graphics
(nativeGraphics);
246
Graphics result = new
Graphics
(gdipNativeGraphics);
1030 references to Graphics
System.Drawing (140)
commonui\System\Drawing\Advanced\Font.cs (8)
805
Graphics
graphics =
Graphics
.FromHdcInternal(screenDC);
823
public unsafe void ToLogFont(object logFont,
Graphics
graphics) {
911
public float GetHeight(
Graphics
graphics) {
935
using (
Graphics
graphics =
Graphics
.FromHdcInternal(screenDC)) {
1004
using(
Graphics
graphics =
Graphics
.FromHdcInternal(screenDC)){
commonui\System\Drawing\Advanced\FontFamily.cs (1)
438
public static FontFamily[] GetFamilies(
Graphics
graphics) {
commonui\System\Drawing\Advanced\Gdiplus.cs (16)
2459
Graphics
.DrawImageAbort callback, HandleRef callbackdata);
2469
Graphics
.DrawImageAbort callback, HandleRef callbackdata);
2478
Graphics
.DrawImageAbort callback, HandleRef callbackdata);
2487
Graphics
.DrawImageAbort callback, HandleRef callbackdata);
2494
Graphics
.EnumerateMetafileProc callback,
2503
Graphics
.EnumerateMetafileProc callback,
2512
Graphics
.EnumerateMetafileProc callback,
2521
Graphics
.EnumerateMetafileProc callback,
2531
Graphics
.EnumerateMetafileProc callback,
2541
Graphics
.EnumerateMetafileProc callback,
2552
Graphics
.EnumerateMetafileProc callback,
2563
Graphics
.EnumerateMetafileProc callback,
2574
Graphics
.EnumerateMetafileProc callback,
2585
Graphics
.EnumerateMetafileProc callback,
2597
Graphics
.EnumerateMetafileProc callback,
2609
Graphics
.EnumerateMetafileProc callback,
commonui\System\Drawing\Advanced\GraphicsPath.cs (22)
455
return IsVisible(new PointF(x,y), (
Graphics
)null);
466
return IsVisible(point, (
Graphics
)null);
473
/// specified <see cref='System.Drawing.
Graphics
'/>.
476
public bool IsVisible(float x, float y,
Graphics
graphics) {
486
public bool IsVisible(PointF pt,
Graphics
graphics) {
509
return IsVisible(new Point(x,y), (
Graphics
)null);
519
return IsVisible(point, (
Graphics
)null);
526
/// specified <see cref='System.Drawing.
Graphics
'/>.
529
public bool IsVisible(int x, int y,
Graphics
graphics) {
539
public bool IsVisible(Point pt,
Graphics
graphics) {
562
return IsOutlineVisible(new PointF(x,y), pen, (
Graphics
)null);
573
return IsOutlineVisible(point, pen, (
Graphics
)null);
581
/// the specified <see cref='System.Drawing.
Graphics
'/>.
584
public bool IsOutlineVisible(float x, float y, Pen pen,
Graphics
graphics) {
594
/// the specified <see cref='System.Drawing.
Graphics
'/>.
597
public bool IsOutlineVisible(PointF pt, Pen pen,
Graphics
graphics) {
625
return IsOutlineVisible(new Point(x,y), pen, (
Graphics
)null);
636
return IsOutlineVisible(point, pen, (
Graphics
)null);
644
/// the specified <see cref='System.Drawing.
Graphics
'/>.
647
public bool IsOutlineVisible(int x, int y, Pen pen,
Graphics
graphics) {
657
/// the specified <see cref='System.Drawing.
Graphics
'/>.
660
public bool IsOutlineVisible(Point pt, Pen pen,
Graphics
graphics) {
commonui\System\Drawing\Bitmap.cs (6)
287
/// class with the specified size and target <see cref='System.Drawing.
Graphics
'/>.
291
public Bitmap(int width, int height,
Graphics
g) {
325
Graphics
g = null;
327
g =
Graphics
.FromImage(this);
582
Graphics
graphics = null;
586
graphics =
Graphics
.FromImage(result);
commonui\System\Drawing\BufferedGraphics.cs (6)
33
private
Graphics
bufferedGraphicsSurface;
34
private
Graphics
targetGraphics;
46
internal BufferedGraphics(
Graphics
bufferedGraphicsSurface, BufferedGraphicsContext context,
Graphics
targetGraphics,
102
public
Graphics
Graphics {
128
public void Render(
Graphics
target) {
commonui\System\Drawing\BufferedGraphicsContext.cs (8)
35
private
Graphics
compatGraphics;
115
public BufferedGraphics Allocate(
Graphics
targetGraphics, Rectangle targetRectangle) {
144
private BufferedGraphics AllocBuffer(
Graphics
targetGraphics, IntPtr targetDC, Rectangle targetRectangle) {
163
Graphics
surface;
196
private BufferedGraphics AllocBufferInTempManager(
Graphics
targetGraphics, IntPtr targetDC, Rectangle targetRectangle) {
343
palHalftone =
Graphics
.GetHalftonePalette();
374
private
Graphics
CreateBuffer(IntPtr src, int offsetX, int offsetY, int width, int height)
404
compatGraphics =
Graphics
.FromHdcInternal(compatDC);
commonui\System\Drawing\Design\PaintValueEventArgs.cs (3)
35
private readonly
Graphics
graphics;
48
public PaintValueEventArgs(ITypeDescriptorContext context, object value,
Graphics
graphics, Rectangle bounds) {
84
public
Graphics
Graphics {
commonui\System\Drawing\Design\UITypeEditor.cs (1)
138
public void PaintValue(object value,
Graphics
canvas, Rectangle rectangle) {
commonui\System\Drawing\Graphics.cs (18)
125
/// Creates a new instance of the <see cref='System.Drawing.
Graphics
'/> class from the specified
132
public static
Graphics
FromHdc(IntPtr hdc) {
148
public static
Graphics
FromHdcInternal(IntPtr hdc) {
171
public static
Graphics
FromHdc(IntPtr hdc, IntPtr hdevice) {
189
/// Creates a new instance of the <see cref='System.Drawing.
Graphics
'/> class
195
public static
Graphics
FromHwnd(IntPtr hwnd) {
208
public static
Graphics
FromHwndInternal(IntPtr hwnd)
223
/// Creates an instance of the <see cref='System.Drawing.
Graphics
'/> class
228
public static
Graphics
FromImage(Image image) {
235
Contract.Ensures(Contract.Result<
Graphics
>() != null);
246
Graphics
result = new Graphics(gdipNativeGraphics);
350
/// Deletes this <see cref='System.Drawing.
Graphics
'/>, and
428
/// Deletes this <see cref='System.Drawing.
Graphics
'/>, and
474
/// Gets or sets the <see cref='System.Drawing.Drawing2D.CompositingMode'/> associated with this <see cref='System.Drawing.
Graphics
'/>.
564
/// this <see cref='System.Drawing.
Graphics
'/>
735
/// for this <see cref='System.Drawing.
Graphics
'/>.
3928
public void SetClip(
Graphics
g) {
3935
public void SetClip(
Graphics
g, CombineMode combineMode) {
commonui\System\Drawing\GraphicsContext.cs (1)
60
public GraphicsContext(
Graphics
g) {
commonui\System\Drawing\Icon.cs (5)
491
internal void Draw(
Graphics
graphics, int x, int y) {
505
internal void Draw(
Graphics
graphics, Rectangle targetRect) {
530
internal void DrawUnstretched(
Graphics
graphics, Rectangle targetRect) {
1066
Graphics
graphics = null;
1068
graphics =
Graphics
.FromImage(bitmap);
commonui\System\Drawing\Printing\DefaultPrintController.cs (3)
27
private
Graphics
graphics;
90
public override
Graphics
OnStartPage(PrintDocument document, PrintPageEventArgs e) {
118
graphics =
Graphics
.FromHdcInternal( dc.Hdc );
commonui\System\Drawing\Printing\PreviewPrintController.cs (3)
30
private System.Drawing.
Graphics
graphics;
92
public override
Graphics
OnStartPage(PrintDocument document, PrintPageEventArgs e) {
127
graphics =
Graphics
.FromImage(metafile);
commonui\System\Drawing\Printing\PrintController.cs (4)
183
Graphics
graphics = OnStartPage(document, pageEvent);
229
Graphics
graphics = OnStartPage(document, pageEvent);
235
Graphics
graphics = OnStartPage(document, pageEvent);
290
public virtual
Graphics
OnStartPage(PrintDocument document, PrintPageEventArgs e) {
commonui\System\Drawing\Printing\PrinterSettings.cs (8)
714
public
Graphics
CreateMeasurementGraphics() {
722
public
Graphics
CreateMeasurementGraphics(bool honorOriginAtMargins) {
723
Graphics
g = CreateMeasurementGraphics();
742
public
Graphics
CreateMeasurementGraphics(PageSettings pageSettings) {
745
Graphics
g =
Graphics
.FromHdcInternal(dc.Hdc);
754
public
Graphics
CreateMeasurementGraphics(PageSettings pageSettings, bool honorOriginAtMargins) {
755
Graphics
g = CreateMeasurementGraphics();
commonui\System\Drawing\Printing\PrintPageEvent.cs (5)
21
private
Graphics
graphics;
34
public PrintPageEventArgs(
Graphics
graphics, Rectangle marginBounds, Rectangle pageBounds, PageSettings pageSettings) {
53
/// Gets the <see cref='System.Drawing.
Graphics
'/>
58
public
Graphics
Graphics {
119
internal void SetGraphics(
Graphics
value) {
commonui\System\Drawing\Printing\PrintPreviewGraphics.cs (2)
50
using(
Graphics
graphics =
Graphics
.FromHdcInternal(dc.Hdc) ) {
commonui\System\Drawing\Region.cs (14)
641
/// region that bounds this <see cref='System.Drawing.Region'/> on the drawing surface of a <see cref='System.Drawing.
Graphics
'/>.
643
public RectangleF GetBounds(
Graphics
g) {
666
public IntPtr GetHrgn(
Graphics
g) {
687
public bool IsEmpty(
Graphics
g) {
707
public bool IsInfinite(
Graphics
g) {
728
public bool Equals(Region region,
Graphics
g) {
803
public bool IsVisible(float x, float y,
Graphics
g) {
814
public bool IsVisible(PointF point,
Graphics
g) {
856
public bool IsVisible(float x, float y, float width, float height,
Graphics
g) {
866
public bool IsVisible(RectangleF rect,
Graphics
g) {
888
public bool IsVisible(int x, int y,
Graphics
g) {
910
public bool IsVisible(Point point,
Graphics
g) {
951
public bool IsVisible(int x, int y, int width, int height,
Graphics
g) {
963
public bool IsVisible(Rectangle rect,
Graphics
g) {
misc\DpiHelper.cs (2)
459
using (
Graphics
graphics =
Graphics
.FromImage(deviceImage))
misc\GDI\WindowsGraphics.cs (3)
56
Graphics
graphics; // cached when initialized FromGraphics to be able to call g.ReleaseHdc from Dispose.
154
public static WindowsGraphics FromGraphics(
Graphics
g)
162
public static WindowsGraphics FromGraphics(
Graphics
g, ApplyGraphicsProperties properties)
misc\GDI\WindowsRegion.cs (1)
92
public static WindowsRegion FromRegion( Region region,
Graphics
g ){
System.Web.DataVisualization (22)
Common\Annotation\TextAnnotation.cs (2)
932
Graphics
graphics = null;
938
graphics =
Graphics
.FromImage( graphicsImage );
Common\General\Chart.cs (9)
251
using (
Graphics
newGraphics =
Graphics
.FromImage(bitmap))
272
using (
Graphics
metaGraphics =
Graphics
.FromImage(metaFile))
354
Graphics
offScreen =
Graphics
.FromImage( image );
1627
Graphics
offScreen =
Graphics
.FromImage(image);
1694
Graphics
graph,
Common\General\ChartGraphics.cs (2)
402
using(
Graphics
graphics =
Graphics
.FromImage(bitmap))
Common\General\ChartRenderingEngine.cs (1)
839
public
Graphics
Graphics
Common\General\GdiGraphics.cs (2)
709
public
Graphics
Graphics
728
Graphics
_graphics = null;
Common\General\IChartRenderingEngine.cs (1)
527
Graphics
Graphics {get; set;}
Common\Utilities\ImageLoader.cs (4)
366
internal bool GetAdjustedImageSize(string name,
Graphics
graphics, ref SizeF size)
384
internal static void GetAdjustedImageSize(Image image,
Graphics
graphics, ref SizeF size)
405
internal static bool DoDpisMatch(Image image,
Graphics
graphics)
410
internal static Image GetScaledImage(Image image,
Graphics
graphics)
WebForm\ChartWebControl.cs (1)
1044
public void Paint(
Graphics
graphics, Rectangle position)
System.Web.Mobile (5)
UI\MobileControls\Design\Util\GroupLabel.cs (1)
35
Graphics
g = e.Graphics;
UI\MobileControls\Design\Util\ImageCreator.cs (4)
36
using(
Graphics
g =
Graphics
.FromImage(bmp))
112
using(
Graphics
g =
Graphics
.FromImage(bitmap))
System.Windows.Forms (709)
misc\DpiHelper.cs (2)
459
using (
Graphics
graphics =
Graphics
.FromImage(deviceImage))
misc\GDI\WindowsFont.cs (1)
564
public static WindowsFontQuality WindowsFontQualityFromTextRenderingHint(
Graphics
g)
misc\GDI\WindowsGraphics.cs (3)
56
Graphics
graphics; // cached when initialized FromGraphics to be able to call g.ReleaseHdc from Dispose.
154
public static WindowsGraphics FromGraphics(
Graphics
g)
162
public static WindowsGraphics FromGraphics(
Graphics
g, ApplyGraphicsProperties properties)
misc\GDI\WindowsRegion.cs (1)
92
public static WindowsRegion FromRegion( Region region,
Graphics
g ){
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (27)
56
using (
Graphics
measurementGraphics = WindowsFormsUtils.CreateMeasurementGraphics()) {
146
internal static void DrawDitheredFill(
Graphics
g, Color color1, Color color2, Rectangle bounds) {
152
protected void Draw3DBorder(
Graphics
g, Rectangle bounds, ColorData colors, bool raised) {
172
private void Draw3DBorderHighContrastRaised(
Graphics
g, ref Rectangle bounds, ColorData colors) {
269
private void Draw3DBorderNormal(
Graphics
g, ref Rectangle bounds, ColorData colors) {
336
private void Draw3DBorderRaised(
Graphics
g, ref Rectangle bounds, ColorData colors) {
442
protected internal static void Draw3DLiteBorder(
Graphics
g, Rectangle r, ColorData colors, bool up) {
477
internal static void DrawFlatBorder(
Graphics
g, Rectangle r, Color c) {
488
internal static void DrawFlatBorderWithSize(
Graphics
g, Rectangle r, Color c, int size) {
527
internal static void DrawFlatFocus(
Graphics
g, Rectangle r, Color c) {
541
void DrawFocus(
Graphics
g, Rectangle r) {
550
void DrawImage(
Graphics
graphics, LayoutData layout) {
558
internal virtual void DrawImageCore(
Graphics
graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout) {
597
internal static void DrawDefaultBorder(
Graphics
g, Rectangle r, Color c, bool isDefault) {
618
void DrawText(
Graphics
g, LayoutData layout, Color c, ColorData colors)
703
Graphics
g = e.Graphics;
715
Graphics
g = e.Graphics;
729
internal
Graphics
graphics;
731
internal ColorOptions(
Graphics
graphics, Color foreColor, Color backColor) {
1445
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics()) {
1573
static ColorOptions CommonRender(
Graphics
g, Color foreColor, Color backColor, bool enabled) {
1579
ColorOptions CommonRender(
Graphics
g) {
1585
protected ColorOptions PaintRender(
Graphics
g) {
1590
internal static ColorOptions PaintFlatRender(
Graphics
g, Color foreColor, Color backColor, bool enabled) {
1594
protected ColorOptions PaintFlatRender(
Graphics
g) {
1599
internal static ColorOptions PaintPopupRender(
Graphics
g, Color foreColor, Color backColor, bool enabled) {
1603
protected ColorOptions PaintPopupRender(
Graphics
g) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (4)
46
Graphics
g = e.Graphics;
127
Graphics
g = e.Graphics;
206
Graphics
g = e.Graphics;
287
internal static LayoutOptions PaintFlatLayout(
Graphics
g, bool up, bool check, int borderSize, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (4)
28
Graphics
g = e.Graphics;
67
Graphics
g = e.Graphics;
128
Graphics
g = e.Graphics;
159
internal static LayoutOptions PaintPopupLayout(
Graphics
g, bool up, int paintedBorder, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (1)
147
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (3)
39
using (
Graphics
measurementGraphics = WindowsFormsUtils.CreateMeasurementGraphics()) {
77
internal double GetDpiScaleRatio(
Graphics
g) {
81
internal static double GetDpiScaleRatio(
Graphics
g, Control control) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (6)
85
internal static void DrawCheckBackground(bool controlEnabled, CheckState controlCheckState,
Graphics
g, Rectangle bounds, Color checkColor, Color checkBackground, bool disabledColors, ColorData colors)
131
internal static void DrawCheckOnly(int checkSize, bool controlChecked, bool controlEnabled, CheckState controlCheckState,
Graphics
g, LayoutData layout, ColorData colors, Color checkColor, Color checkBackground) {
173
internal static Rectangle DrawPopupBorder(
Graphics
g, Rectangle r, ColorData colors) {
216
Graphics
g = e.Graphics;
259
Graphics
offscreen =
Graphics
.FromImage(bitmap);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (1)
66
System.Drawing.
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (4)
29
System.Drawing.
Graphics
g = e.Graphics;
49
System.Drawing.
Graphics
g = e.Graphics;
83
System.Drawing.
Graphics
g = e.Graphics;
117
internal static LayoutOptions PaintPopupLayout(
Graphics
g, bool show3D, int checkSize, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (2)
84
using (
Graphics
measurementGraphics = WindowsFormsUtils.CreateMeasurementGraphics()) {
113
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics()) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (2)
35
Graphics
g = e.Graphics;
178
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (1)
71
System.Drawing.
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (3)
21
System.Drawing.
Graphics
g = e.Graphics;
43
System.Drawing.
Graphics
g = e.Graphics;
66
System.Drawing.
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonStandardAdapter.cs (1)
74
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics()) {
winforms\Managed\System\WinForms\ButtonRenderer.cs (9)
82
public static void DrawParentBackground(
Graphics
g, Rectangle bounds, Control childControl) {
95
public static void DrawButton(
Graphics
g, Rectangle bounds, PushButtonState state) {
114
internal static void DrawButtonForHandle(
Graphics
g, Rectangle bounds, bool focused, PushButtonState state, IntPtr handle) {
139
public static void DrawButton(
Graphics
g, Rectangle bounds, bool focused, PushButtonState state) {
149
public static void DrawButton(
Graphics
g, Rectangle bounds, string buttonText, Font font, bool focused, PushButtonState state) {
162
public static void DrawButton(
Graphics
g, Rectangle bounds, string buttonText, Font font, TextFormatFlags flags, bool focused, PushButtonState state) {
192
public static void DrawButton(
Graphics
g, Rectangle bounds, Image image, Rectangle imageBounds, bool focused, PushButtonState state) {
219
public static void DrawButton(
Graphics
g, Rectangle bounds, string buttonText, Font font, Image image, Rectangle imageBounds, bool focused, PushButtonState state) {
231
public static void DrawButton(
Graphics
g, Rectangle bounds, string buttonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, PushButtonState state) {
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (10)
85
public static void DrawParentBackground(
Graphics
g, Rectangle bounds, Control childControl) {
99
public static void DrawCheckBox(
Graphics
g, Point glyphLocation, CheckBoxState state) {
103
internal static void DrawCheckBox(
Graphics
g, Point glyphLocation, CheckBoxState state, IntPtr hWnd) {
128
public static void DrawCheckBox(
Graphics
g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, bool focused, CheckBoxState state) {
140
public static void DrawCheckBox(
Graphics
g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state) {
144
internal static void DrawCheckBox(
Graphics
g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused, CheckBoxState state, IntPtr hWnd) {
178
public static void DrawCheckBox(
Graphics
g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) {
190
public static void DrawCheckBox(
Graphics
g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, CheckBoxState state) {
230
public static Size GetGlyphSize(
Graphics
g, CheckBoxState state) {
234
internal static Size GetGlyphSize(
Graphics
g, CheckBoxState state, IntPtr hWnd) {
winforms\Managed\System\WinForms\ComboBox.cs (12)
3398
Graphics
graphics = CreateGraphicsInternal();
3456
Graphics
graphics =
Graphics
.FromHdcInternal(m.WParam);
3609
Graphics
g =
Graphics
.FromHdcInternal(dis.hDC);
3635
Graphics
graphics = CreateGraphicsInternal();
3792
using (
Graphics
g =
Graphics
.FromHdcInternal(dc)) {
3816
using (
Graphics
g =
Graphics
.FromHdcInternal(m.WParam)) {
5968
public virtual void DrawFlatCombo(ComboBox comboBox,
Graphics
g) {
6059
protected virtual void DrawFlatComboDropDown(ComboBox comboBox,
Graphics
g, Rectangle dropDownRect) {
winforms\Managed\System\WinForms\ComboBoxRenderer.cs (8)
47
private static void DrawBackground(
Graphics
g, Rectangle bounds, ComboBoxState state) {
71
public static void DrawTextBox(
Graphics
g, Rectangle bounds, ComboBoxState state) {
88
public static void DrawTextBox(
Graphics
g, Rectangle bounds, string comboBoxText, Font font, ComboBoxState state) {
98
public static void DrawTextBox(
Graphics
g, Rectangle bounds, string comboBoxText, Font font, Rectangle textBounds, ComboBoxState state) {
108
public static void DrawTextBox(
Graphics
g, Rectangle bounds, string comboBoxText, Font font, TextFormatFlags flags, ComboBoxState state) {
130
public static void DrawTextBox(
Graphics
g, Rectangle bounds, string comboBoxText, Font font, Rectangle textBounds, TextFormatFlags flags, ComboBoxState state) {
152
public static void DrawDropDownButton(
Graphics
g, Rectangle bounds, ComboBoxState state) {
166
internal static void DrawDropDownButtonForHandle(
Graphics
g, Rectangle bounds, ComboBoxState state, IntPtr handle) {
winforms\Managed\System\WinForms\Control.cs (12)
3027
Graphics
g = CreateGraphics();
5749
public System.Drawing.
Graphics
CreateGraphics() {
5762
internal System.Drawing.
Graphics
CreateGraphicsInternal() {
5763
return
Graphics
.FromHwndInternal(this.Handle);
6171
using (
Graphics
g =
Graphics
.FromImage(image)) {
6178
using (
Graphics
destGraphics =
Graphics
.FromImage(bitmap)) {
6566
Graphics
graphics = CreateGraphicsInternal();
7241
using (
Graphics
graphics = CreateGraphicsInternal()) {
9768
Graphics
g = e.Graphics;
12052
IntPtr halftonePalette =
Graphics
.GetHalftonePalette();
winforms\Managed\System\WinForms\ControlPaint.cs (63)
222
using(
Graphics
graphics =
Graphics
.FromHdcInternal(dc) ) {
428
internal static void PrintBorder(
Graphics
graphics, Rectangle bounds, BorderStyle style, Border3DStyle b3dStyle) {
446
internal static void DrawBackgroundImage(
Graphics
g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect) {
449
internal static void DrawBackgroundImage(
Graphics
g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset) {
453
internal static void DrawBackgroundImage(
Graphics
g, Image backgroundImage, Color backColor, ImageLayout backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft) {
533
public static void DrawBorder(
Graphics
graphics, Rectangle bounds, Color color, ButtonBorderStyle style) {
561
public static void DrawBorder(
Graphics
graphics, Rectangle bounds,
895
public static void DrawBorder3D(
Graphics
graphics, Rectangle rectangle) {
905
public static void DrawBorder3D(
Graphics
graphics, Rectangle rectangle, Border3DStyle style) {
916
public static void DrawBorder3D(
Graphics
graphics, Rectangle rectangle, Border3DStyle style, Border3DSide sides) {
925
public static void DrawBorder3D(
Graphics
graphics, int x, int y, int width, int height) {
935
public static void DrawBorder3D(
Graphics
graphics, int x, int y, int width, int height, Border3DStyle style) {
946
public static void DrawBorder3D(
Graphics
graphics, int x, int y, int width, int height, Border3DStyle style, Border3DSide sides) {
982
private static void DrawBorderComplex(
Graphics
graphics, Rectangle bounds, Color color, ButtonBorderStyle style) {
1083
private static void DrawBorderSimple(
Graphics
graphics, Rectangle bounds, Color color, ButtonBorderStyle style) {
1111
public static void DrawButton(
Graphics
graphics, Rectangle rectangle, ButtonState state) {
1119
public static void DrawButton(
Graphics
graphics, int x, int y, int width, int height, ButtonState state) {
1128
public static void DrawCaptionButton(
Graphics
graphics, Rectangle rectangle, CaptionButton button, ButtonState state) {
1136
public static void DrawCaptionButton(
Graphics
graphics, int x, int y, int width, int height, CaptionButton button, ButtonState state) {
1146
public static void DrawCheckBox(
Graphics
graphics, Rectangle rectangle, ButtonState state) {
1154
public static void DrawCheckBox(
Graphics
graphics, int x, int y, int width, int height, ButtonState state) {
1169
public static void DrawComboButton(
Graphics
graphics, Rectangle rectangle, ButtonState state) {
1177
public static void DrawComboButton(
Graphics
graphics, int x, int y, int width, int height, ButtonState state) {
1186
public static void DrawContainerGrabHandle(
Graphics
graphics, Rectangle bounds) {
1232
private static void DrawFlatCheckBox(
Graphics
graphics, Rectangle rectangle, ButtonState state) {
1254
private static void DrawFlatCheckBox(
Graphics
graphics, Rectangle rectangle, Color foreground, Brush background, ButtonState state) {
1280
using (
Graphics
g2 =
Graphics
.FromImage(bitmap)) {
1312
public static void DrawFocusRectangle(
Graphics
graphics, Rectangle rectangle) {
1321
public static void DrawFocusRectangle(
Graphics
graphics, Rectangle rectangle, Color foreColor, Color backColor) {
1325
internal static void DrawHighContrastFocusRectangle(
Graphics
graphics, Rectangle rectangle, Color color) {
1329
private static void DrawFocusRectangle(
Graphics
graphics, Rectangle rectangle, Color color, bool highContrast) {
1349
private static void DrawFrameControl(
Graphics
graphics, int x, int y, int width, int height,
1363
using(
Graphics
g2 =
Graphics
.FromImage(bitmap) ) {
1395
public static void DrawGrabHandle(
Graphics
graphics, Rectangle rectangle, bool primary, bool enabled) {
1447
public static void DrawGrid(
Graphics
graphics, Rectangle area, Size pixelsBetweenDots, Color backColor) {
1500
internal static void DrawImageColorized(
Graphics
graphics, Image image, Rectangle destination,
1515
internal static void DrawImageReplaceColor(
Graphics
g, Image image, Rectangle dest, Color oldColor, Color newColor) {
1529
private static void DrawImageColorized(
Graphics
graphics, Image image, Rectangle destination,
1545
public static void DrawImageDisabled(
Graphics
graphics, Image image, int x, int y, Color background) {
1553
internal static void DrawImageDisabled(
Graphics
graphics, Image image, Rectangle imageBounds, Color background, bool unscaledImage) {
1597
using (
Graphics
g =
Graphics
.FromImage(bmp)) {
1663
public static void DrawLockedFrame(
Graphics
graphics, Rectangle rectangle, bool primary) {
1695
public static void DrawMenuGlyph(
Graphics
graphics, Rectangle rectangle, MenuGlyph glyph) {
1704
public static void DrawMenuGlyph(
Graphics
graphics, Rectangle rectangle, MenuGlyph glyph, Color foreColor, Color backColor)
1713
public static void DrawMenuGlyph(
Graphics
graphics, int x, int y, int width, int height, MenuGlyph glyph) {
1723
public static void DrawMenuGlyph(
Graphics
graphics, int x, int y, int width, int height, MenuGlyph glyph, Color foreColor, Color backColor)
1732
public static void DrawMixedCheckBox(
Graphics
graphics, Rectangle rectangle, ButtonState state) {
1740
public static void DrawMixedCheckBox(
Graphics
graphics, int x, int y, int width, int height, ButtonState state) {
1749
public static void DrawRadioButton(
Graphics
graphics, Rectangle rectangle, ButtonState state) {
1757
public static void DrawRadioButton(
Graphics
graphics, int x, int y, int width, int height, ButtonState state) {
1848
public static void DrawScrollButton(
Graphics
graphics, Rectangle rectangle, ScrollButton button, ButtonState state) {
1856
public static void DrawScrollButton(
Graphics
graphics, int x, int y, int width, int height, ScrollButton button, ButtonState state) {
1866
public static void DrawSelectionFrame(
Graphics
graphics, bool active, Rectangle outsideRect, Rectangle insideRect, Color backColor) {
1890
public static void DrawSizeGrip(
Graphics
graphics, Color backColor, Rectangle bounds) {
1899
public static void DrawSizeGrip(
Graphics
graphics, Color backColor, int x, int y, int width, int height) {
1927
public static void DrawStringDisabled(
Graphics
graphics, string s, Font font,
1982
public static void DrawVisualStyleBorder(
Graphics
graphics, Rectangle bounds) {
2411
internal static void PaintTableControlBorder(TableLayoutPanelCellBorderStyle borderStyle,
Graphics
g, Rectangle bound) {
2446
internal static void PaintTableCellBorder(TableLayoutPanelCellBorderStyle borderStyle,
Graphics
g, Rectangle bound) {
winforms\Managed\System\WinForms\Cursor.cs (5)
413
private void DrawImageCore(
Graphics
graphics, Rectangle imageRect, Rectangle targetRect, bool stretch) {
515
/// Draws this <see cref='System.Windows.Forms.Cursor'/> to a <see cref='System.Drawing.
Graphics
'/>.
518
public void Draw(
Graphics
g, Rectangle targetRect) {
524
/// Draws this <see cref='System.Windows.Forms.Cursor'/> to a <see cref='System.Drawing.
Graphics
'/>.
526
public void DrawStretched(
Graphics
g, Rectangle targetRect) {
winforms\Managed\System\WinForms\DataGrid.cs (9)
4410
Graphics
g = pe.Graphics;
4761
Graphics
g = CreateGraphicsInternal();
5051
Graphics
g = CreateGraphicsInternal();
5781
using (
Graphics
graphics = CreateGraphicsInternal()) {
7118
private void PaintColumnHeaders(
Graphics
g) {
7143
private int PaintColumnHeaderText(
Graphics
g, Rectangle boundingRect) {
7288
private void PaintBorder(
Graphics
g, Rectangle bounds)
7320
private void PaintGrid(
Graphics
g, Rectangle gridBounds) {
7391
private void PaintRows(
Graphics
g, ref Rectangle boundingRect) {
winforms\Managed\System\WinForms\DataGridAddNewRow.cs (3)
78
public override int Paint(
Graphics
g, Rectangle bounds, Rectangle trueRowBounds, int firstVisibleColumn, int columnCount)
83
public override int Paint(
Graphics
g,
104
protected override void PaintCellContents(
Graphics
g, Rectangle cellBounds, DataGridColumnStyle column,
winforms\Managed\System\WinForms\DataGridBoolColumn.cs (8)
217
protected internal override Size GetPreferredSize(
Graphics
g, object value) {
236
protected internal override int GetPreferredHeight(
Graphics
g, object value)
356
/// with the given <see cref='System.Drawing.
Graphics
'/>,
359
protected internal override void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum)
368
/// with the given <see cref='System.Drawing.
Graphics
'/>, <see cref='System.Drawing.Rectangle'/>,
371
protected internal override void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight) {
377
/// <para>Draws the <see cref='System.Windows.Forms.DataGridBoolColumn'/> with the given <see cref='System.Drawing.
Graphics
'/>, <see cref='System.Drawing.Rectangle'/>,
380
protected internal override void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum,
winforms\Managed\System\WinForms\DataGridCaption.cs (5)
466
internal void Paint(
Graphics
g, Rectangle bounds, bool alignRight) {
535
private void PaintIcon(
Graphics
g, Rectangle bounds, Bitmap b) {
542
private void PaintBackButton(
Graphics
g, Rectangle bounds, bool alignRight) {
549
private void PaintDownButton(
Graphics
g, Rectangle bounds) {
556
private void PaintText(
Graphics
g, Rectangle bounds, bool alignToRight) {
winforms\Managed\System\WinForms\DataGridColumn.cs (8)
870
protected internal abstract Size GetPreferredSize(
Graphics
g, object value);
883
protected internal abstract int GetPreferredHeight(
Graphics
g, object value);
1065
/// <para>Paints the a <see cref='System.Windows.Forms.DataGridColumnStyle'/> with the specified <see cref='System.Drawing.
Graphics
'/>,
1070
protected internal abstract void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum);
1075
/// paints a <see cref='System.Windows.Forms.DataGridColumnStyle'/> with the specified <see cref='System.Drawing.
Graphics
'/>, <see cref='System.Drawing.Rectangle'/>, see Rectangle, row number, and
1080
protected internal abstract void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight);
1085
/// Paints a <see cref='System.Windows.Forms.DataGridColumnStyle'/> with the specified <see cref='System.Drawing.
Graphics
'/>, <see cref='System.Drawing.Rectangle'/>, see System.Data.DataView, row number, background color, foreground color, and alignment.
1090
protected internal virtual void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum,
winforms\Managed\System\WinForms\DataGridParentRows.cs (13)
540
internal void Paint(
Graphics
g, Rectangle visualbounds, bool alignRight) {
551
private void PaintBorder(
Graphics
g, Rectangle bounds) {
574
private int GetTableBoxWidth(
Graphics
g, Font font) {
597
private int GetColBoxWidth(
Graphics
g, Font font, int colNum) {
618
private int GetColDataBoxWidth(
Graphics
g, int colNum) {
675
private void PaintParentRows(
Graphics
g, Rectangle bounds, bool alignToRight) {
771
private void PaintBitmap(
Graphics
g, Bitmap b, Rectangle bounds)
794
private void PaintDownButton(
Graphics
g, Rectangle bounds)
802
private void PaintLeftArrow(
Graphics
g, Rectangle bounds, bool alignToRight)
831
private void PaintRightArrow(
Graphics
g, Rectangle bounds, bool alignToRight)
860
private int PaintRow(
Graphics
g, Rectangle bounds, int row, Font font, bool alignToRight,
905
private int PaintColumns(
Graphics
g, Rectangle bounds, DataGridState dgs, Font font, bool alignToRight,
987
private int PaintText(
Graphics
g, Rectangle textBounds, string text, Font font, bool bold, bool alignToRight) {
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (8)
517
public override int Paint(
Graphics
g, Rectangle bounds, Rectangle trueRowBounds, int firstVisibleColumn, int numVisibleColumns) {
521
public override int Paint(
Graphics
g,
556
protected override void PaintCellContents(
Graphics
g, Rectangle cellBounds, DataGridColumnStyle column,
585
public override void PaintHeader(
Graphics
g, Rectangle bounds, bool alignToRight, bool isDirty) {
602
public void PaintHeaderInside(
Graphics
g, Rectangle bounds, Brush backBr, bool alignToRight, bool isDirty) {
637
private void PaintRelations(
Graphics
g, Rectangle bounds, Rectangle trueRowBounds,
705
private int PaintRelationText(
Graphics
g, Rectangle bounds, bool alignToRight) {
747
private void PaintPlusMinusGlyph(
Graphics
g, Rectangle bounds, Brush backBr, bool alignToRight) {
winforms\Managed\System\WinForms\DataGridRow.cs (13)
419
public abstract int Paint(
Graphics
g,
425
public abstract int Paint(
Graphics
g,
437
protected virtual void PaintBottomBorder(
Graphics
g, Rectangle bounds, int dataWidth)
442
protected virtual void PaintBottomBorder(
Graphics
g, Rectangle bounds, int dataWidth, int borderWidth, bool alignToRight) {
465
public virtual int PaintData(
Graphics
g,
473
public virtual int PaintData(
Graphics
g,
536
protected virtual void PaintCellContents(
Graphics
g, Rectangle cellBounds, DataGridColumnStyle column,
542
protected virtual void PaintCellContents(
Graphics
g, Rectangle cellBounds, DataGridColumnStyle column,
555
protected Rectangle PaintIcon(
Graphics
g, Rectangle visualBounds, bool paintIcon, bool alignToRight, Bitmap bmp) {
559
protected Rectangle PaintIcon(
Graphics
g, Rectangle visualBounds, bool paintIcon, bool alignToRight, Bitmap bmp, Brush backBrush) {
581
public virtual void PaintHeader(
Graphics
g, Rectangle visualBounds) {
586
public virtual void PaintHeader(
Graphics
g, Rectangle visualBounds, bool alignToRight) {
590
public virtual void PaintHeader(
Graphics
g, Rectangle visualBounds, bool alignToRight, bool rowIsDirty) {
winforms\Managed\System\WinForms\DataGridTable.cs (2)
383
Graphics
g = DataGrid.CreateGraphicsInternal();
910
Graphics
g = DataGrid.CreateGraphicsInternal();
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (7)
333
protected internal override Size GetPreferredSize(
Graphics
g, object value) {
356
protected internal override int GetPreferredHeight(
Graphics
g, object value) {
552
protected internal override void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum) {
562
protected internal override void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight) {
573
protected internal override void Paint(
Graphics
g, Rectangle bounds, CurrencyManager source, int rowNum,
584
protected void PaintText(
Graphics
g, Rectangle bounds, string text, bool alignToRight) {
593
protected void PaintText(
Graphics
g, Rectangle textBounds, string text, Brush backBrush, Brush foreBrush, bool alignToRight) {
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (7)
214
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
268
protected override Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
326
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
442
private static Rectangle GetThemeMargins(
Graphics
g)
650
protected override void Paint(
Graphics
graphics,
690
private Rectangle PaintPrivate(
Graphics
g,
1095
public static void DrawButton(
Graphics
g, Rectangle bounds, int buttonState)
winforms\Managed\System\WinForms\DataGridViewCell.cs (24)
1783
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
1790
protected virtual Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
1831
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
1838
protected virtual Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
2574
using(
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
2587
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
2594
protected virtual Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
2599
internal static int GetPreferredTextHeight(
Graphics
g,
2631
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
2831
public static int MeasureTextHeight(
Graphics
graphics, string text, Font font, int maxWidth, TextFormatFlags flags)
2843
public static int MeasureTextHeight(
Graphics
graphics, string text, Font font, int maxWidth, TextFormatFlags flags, out bool widthTruncated)
2876
public static Size MeasureTextPreferredSize(
Graphics
graphics, string text, Font font, float maxRatio, TextFormatFlags flags)
2931
public static Size MeasureTextSize(
Graphics
graphics, string text, Font font, TextFormatFlags flags)
2957
public static int MeasureTextWidth(
Graphics
graphics, string text, Font font, int maxHeight, TextFormatFlags flags)
3147
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
3490
protected virtual void Paint(
Graphics
graphics,
3504
internal void PaintInternal(
Graphics
graphics,
3540
protected virtual void PaintBorder(
Graphics
graphics,
4298
protected virtual void PaintErrorIcon(
Graphics
graphics, Rectangle clipBounds, Rectangle cellValueBounds, string errorText)
4309
private static void PaintErrorIcon(
Graphics
graphics, Rectangle iconBounds)
4321
internal void PaintErrorIcon(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Rectangle cellBounds, Rectangle cellValueBounds, string errorText)
4347
static internal void PaintPadding(
Graphics
graphics,
4386
internal void PaintWork(
Graphics
graphics,
4697
internal static bool TextFitsInBounds(
Graphics
graphics, string text, Font font, Size maxBounds, TextFormatFlags flags)
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (4)
18
private
Graphics
graphics;
32
Graphics
graphics,
145
public
Graphics
Graphics
266
internal void SetProperties(
Graphics
graphics,
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (8)
533
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
587
protected override Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
748
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
1103
protected override void Paint(
Graphics
graphics,
1143
private Rectangle PaintPrivate(
Graphics
g,
1435
using (
Graphics
offscreen =
Graphics
.FromImage(bitmap))
1793
public static void DrawCheckBox(
Graphics
g, Rectangle bounds, int state)
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (7)
229
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
514
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
738
protected override void Paint(
Graphics
graphics,
772
private Rectangle PaintPrivate(
Graphics
g,
864
Graphics
gFlip =
Graphics
.FromImage(bmFlipXPThemes);
1245
public static void DrawHeader(
Graphics
g, Rectangle bounds, int headerState)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (13)
759
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
957
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
1043
private int GetDropDownButtonHeight(
Graphics
graphics, DataGridViewCellStyle cellStyle)
1061
protected override Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
1357
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
2013
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
2048
protected override void Paint(
Graphics
graphics,
2094
private Rectangle PaintPrivate(
Graphics
g,
3185
public static void DrawTextBox(
Graphics
g, Rectangle bounds, ComboBoxState state)
3190
public static void DrawDropDownButton(
Graphics
g, Rectangle bounds, ComboBoxState state)
3196
public static void DrawBorder(
Graphics
g, Rectangle bounds)
3209
public static void DrawDropDownButton(
Graphics
g, Rectangle bounds, ComboBoxState state, bool rightToLeft)
3236
public static void DrawReadOnlyButton(
Graphics
g, Rectangle bounds, ComboBoxState state)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
481
internal static Rectangle GetThemeMargins(
Graphics
g)
624
protected override void Paint(
Graphics
graphics,
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (5)
306
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
362
protected override Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
462
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
749
protected override void Paint(
Graphics
graphics,
789
private Rectangle PaintPrivate(
Graphics
g,
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (5)
550
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
606
protected override Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
649
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
940
protected override void Paint(
Graphics
graphics,
981
private Rectangle PaintPrivate(
Graphics
g,
winforms\Managed\System\WinForms\DataGridViewMethods.cs (9)
5438
using (
Graphics
graphics = CreateGraphicsInternal())
5682
private void DrawColHeaderShadow(
Graphics
g, int mouseX)
17121
Graphics
g = e.Graphics;
19764
protected virtual void PaintBackground(
Graphics
graphics, Rectangle clipBounds, Rectangle gridBounds)
19828
private void PaintBorder(
Graphics
g, Rectangle clipRect, Rectangle bounds)
19888
private void PaintColumnHeaders(
Graphics
g, Rectangle clipBounds, bool singleBorderAdded)
20038
private void PaintGrid(
Graphics
g,
20106
private void PaintRows(
Graphics
g,
20220
private void PaintTopLeftHeaderCell(
Graphics
g)
winforms\Managed\System\WinForms\DataGridViewRow.cs (4)
1271
protected internal virtual void DrawFocus(
Graphics
graphics,
1512
protected internal virtual void Paint(
Graphics
graphics,
1586
protected internal virtual void PaintCells(
Graphics
graphics,
1774
protected internal virtual void PaintHeader(
Graphics
graphics,
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (9)
304
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
364
protected override Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
645
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
710
protected override void Paint(
Graphics
graphics,
751
private Rectangle PaintPrivate(
Graphics
graphics,
835
using (
Graphics
gFlip =
Graphics
.FromImage(bmFlipXPThemes)) {
1130
private void PaintIcon(
Graphics
g, Bitmap bmp, Rectangle bounds, Color foreColor)
1192
public static void DrawHeader(
Graphics
g, Rectangle bounds, int headerState)
winforms\Managed\System\WinForms\DataGridViewRowPostPaintEventArgs.cs (4)
18
private
Graphics
graphics;
30
Graphics
graphics,
93
public
Graphics
Graphics
255
internal void SetProperties(
Graphics
graphics,
winforms\Managed\System\WinForms\DataGridViewRowPrePaintEventArgs.cs (4)
18
private
Graphics
graphics;
31
Graphics
graphics,
95
public
Graphics
Graphics
274
internal void SetProperties(
Graphics
graphics,
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (6)
276
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics())
308
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
364
protected override Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
424
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
623
protected override void Paint(
Graphics
graphics,
663
private Rectangle PaintPrivate(
Graphics
graphics,
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (7)
41
protected override Rectangle GetContentBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
106
protected override Rectangle GetErrorIconBounds(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex)
166
protected override Size GetPreferredSize(
Graphics
graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize)
206
protected override void Paint(
Graphics
graphics,
246
private Rectangle PaintPrivate(
Graphics
graphics,
390
protected override void PaintBorder(
Graphics
graphics,
460
public static void DrawHeader(
Graphics
g, Rectangle bounds, int headerState)
winforms\Managed\System\WinForms\DataGridViewUtilities.cs (1)
169
internal static Size GetPreferredRowHeaderSize(
Graphics
graphics,
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
245
Graphics
graphics = CreateGraphicsInternal();
winforms\Managed\System\WinForms\DrawItemEvent.cs (4)
47
private readonly System.Drawing.
Graphics
graphics;
75
public DrawItemEventArgs(
Graphics
graphics, Font font, Rectangle rect,
90
public DrawItemEventArgs(
Graphics
graphics, Font font, Rectangle rect,
152
public
Graphics
Graphics {
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (3)
26
private readonly
Graphics
graphics;
40
public DrawListViewColumnHeaderEventArgs(
Graphics
graphics, Rectangle bounds, int columnIndex,
71
public
Graphics
Graphics {
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (3)
24
private readonly
Graphics
graphics;
35
public DrawListViewItemEventArgs(
Graphics
graphics, ListViewItem item, Rectangle bounds,
63
public
Graphics
Graphics
winforms\Managed\System\WinForms\DrawListViewSubItemEventArgs.cs (3)
26
private readonly
Graphics
graphics;
40
public DrawListViewSubItemEventArgs(
Graphics
graphics, Rectangle bounds, ListViewItem item,
72
public
Graphics
Graphics
winforms\Managed\System\WinForms\DrawToolTipEventArgs.cs (3)
26
private readonly
Graphics
graphics;
39
public DrawToolTipEventArgs(
Graphics
graphics, IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText,
56
public
Graphics
Graphics
winforms\Managed\System\WinForms\DrawTreeNodeEventArgs.cs (3)
24
private readonly
Graphics
graphics;
34
public DrawTreeNodeEventArgs(
Graphics
graphics, TreeNode node, Rectangle bounds,
62
public
Graphics
Graphics
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
1248
Graphics
graphics =
Graphics
.FromHdcInternal(mirrordc.Hdc);
winforms\Managed\System\WinForms\FontDialog.cs (2)
560
Graphics
graphics =
Graphics
.FromHdcInternal(screenDC);
winforms\Managed\System\WinForms\Form.cs (2)
4106
using(
Graphics
graphics =
Graphics
.FromHwndInternal(IntPtr.Zero /*screen*/) ) {
winforms\Managed\System\WinForms\GDI\TextRenderer.cs (11)
36
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
63
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
90
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
108
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
126
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
153
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
180
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
198
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
268
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
298
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
327
WindowsFontQuality fontQuality = WindowsFont.WindowsFontQualityFromTextRenderingHint(dc as
Graphics
);
winforms\Managed\System\WinForms\GDI\WindowsGraphicsWrapper.cs (2)
44
if( idc is
Graphics
)
62
this.wg = WindowsGraphics.FromGraphics( idc as
Graphics
, properties);
winforms\Managed\System\WinForms\GroupBox.cs (3)
550
Graphics
graphics = e.Graphics;
772
using (
Graphics
graphics =
Graphics
.FromHdcInternal(m.WParam)) {
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (10)
85
public static void DrawParentBackground(
Graphics
g, Rectangle bounds, Control childControl) {
98
public static void DrawGroupBox(
Graphics
g, Rectangle bounds, GroupBoxState state) {
111
public static void DrawGroupBox(
Graphics
g, Rectangle bounds, string groupBoxText, Font font, GroupBoxState state) {
121
public static void DrawGroupBox(
Graphics
g, Rectangle bounds, string groupBoxText, Font font, Color textColor, GroupBoxState state) {
131
public static void DrawGroupBox(
Graphics
g, Rectangle bounds, string groupBoxText, Font font, TextFormatFlags flags, GroupBoxState state) {
144
public static void DrawGroupBox(
Graphics
g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) {
155
private static void DrawThemedGroupBoxNoText(
Graphics
g, Rectangle bounds, GroupBoxState state) {
164
private static void DrawThemedGroupBoxWithText(
Graphics
g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) {
223
private static void DrawUnthemedGroupBoxNoText(
Graphics
g, Rectangle bounds, GroupBoxState state) {
259
private static void DrawUnthemedGroupBoxWithText(
Graphics
g, Rectangle bounds, string groupBoxText, Font font, Color textColor, TextFormatFlags flags, GroupBoxState state) {
winforms\Managed\System\WinForms\ImageList.cs (5)
606
public void Draw(
Graphics
g, Point pt, int index) {
615
public void Draw(
Graphics
g, int x, int y, int index) {
625
public void Draw(
Graphics
g, int x, int y, int width, int height, int index) {
747
Graphics
graphics =
Graphics
.FromImage(result);
winforms\Managed\System\WinForms\Label.cs (4)
1192
protected void DrawImage(System.Drawing.
Graphics
g, Image image, Rectangle r, ContentAlignment align) {
1310
using (
Graphics
measurementGraphics = WindowsFormsUtils.CreateMeasurementGraphics()) {
1623
using(
Graphics
g =
Graphics
.FromHdcInternal(hDC.Handle)) {
winforms\Managed\System\WinForms\LinkLabel.cs (7)
625
private void EnsureRun(
Graphics
g) {
651
Graphics
created = null;
798
Graphics
g = CreateGraphicsInternal();
1375
private void PaintLink(
Graphics
g, Link link, SolidBrush foreBrush, SolidBrush linkBrush, bool optimizeBackgroundRendering, RectangleF finalrect) {
1504
private void PaintLinkBackground(
Graphics
g) {
2712
Graphics
g = null;
2717
g =
Graphics
.FromHwnd(link.Owner.Handle);
winforms\Managed\System\WinForms\ListBox.cs (7)
1952
Graphics
graphics = CreateGraphicsInternal();
2239
using (
Graphics
graphics = CreateGraphicsInternal()) {
2279
using (
Graphics
g =
Graphics
.FromHdc(m.WParam)) {
2326
Graphics
g =
Graphics
.FromHdcInternal(dc);
2365
Graphics
graphics = CreateGraphicsInternal();
winforms\Managed\System\WinForms\ListView.cs (9)
2546
Graphics
g =
Graphics
.FromHdcInternal(nmcd->nmcd.hdc);
2627
Graphics
g =
Graphics
.FromHdcInternal(nmcd->nmcd.hdc);
5122
Graphics
g = this.CreateGraphicsInternal();
5472
Graphics
g =
Graphics
.FromHdcInternal(nmcd->hdc);
6230
using (
Graphics
g =
Graphics
.FromHdc(m.WParam)) {
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
3180
using (
Graphics
g =
Graphics
.FromHdc(m.WParam)) {
winforms\Managed\System\WinForms\MeasureItemEvent.cs (4)
27
private readonly System.Drawing.
Graphics
graphics;
34
public MeasureItemEventArgs(
Graphics
graphics, int index, int itemHeight) {
45
public MeasureItemEventArgs(
Graphics
graphics, int index) {
56
public System.Drawing.
Graphics
Graphics {
winforms\Managed\System\WinForms\MenuItem.cs (4)
1496
Graphics
g =
Graphics
.FromHdcInternal(dis.hDC);
1526
Graphics
graphics =
Graphics
.FromHdcInternal(screendc);
winforms\Managed\System\WinForms\PaintEvent.cs (5)
30
private
Graphics
graphics = null;
71
public PaintEventArgs(
Graphics
graphics, Rectangle clipRect) {
125
/// Gets the <see cref='System.Drawing.
Graphics
'/>
130
public System.Drawing.
Graphics
Graphics {
134
graphics =
Graphics
.FromHdcInternal(dc);
winforms\Managed\System\WinForms\Panel.cs (2)
295
using(
Graphics
g =
Graphics
.FromHdcInternal(hDC.Handle)) {
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (2)
106
public override
Graphics
OnStartPage(PrintDocument document, PrintPageEventArgs e) {
112
Graphics
result = underlyingController.OnStartPage(document, e);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
425
Graphics
tempGraphics = CreateGraphicsInternal();
winforms\Managed\System\WinForms\ProfessionalColorTable.cs (3)
426
private static Color GetAlphaBlendedColor(
Graphics
g, Color src, Color dest, int alpha) {
442
private static Color GetAlphaBlendedColorHighRes(
Graphics
graphics, Color src, Color dest, int alpha) {
481
using (
Graphics
g = WindowsFormsUtils.CreateMeasurementGraphics()) {
winforms\Managed\System\WinForms\ProgressBarRenderer.cs (4)
52
public static void DrawHorizontalBar(
Graphics
g, Rectangle bounds) {
67
public static void DrawVerticalBar(
Graphics
g, Rectangle bounds) {
82
public static void DrawHorizontalChunks(
Graphics
g, Rectangle bounds) {
97
public static void DrawVerticalChunks(
Graphics
g, Rectangle bounds) {
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
5259
public static SizeF MeasureText(PropertyGrid owner,
Graphics
g, string text, Font font ){
5263
public static SizeF MeasureText(PropertyGrid owner,
Graphics
g, string text, Font font, int width ){
5267
public static SizeF MeasureTextSimple(PropertyGrid owner,
Graphics
g, string text, Font font, SizeF size ){
5279
public static SizeF MeasureText(PropertyGrid owner,
Graphics
g, string text, Font font, SizeF size ){
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (3)
122
protected override Brush GetBackgroundBrush(
Graphics
g) {
205
public override void PaintLabel(System.Drawing.
Graphics
g, Rectangle rect, Rectangle clipRect, bool selected, bool paintFullLabel) {
234
public override void PaintValue(object val, System.Drawing.
Graphics
g, Rectangle rect, Rectangle clipRect, PaintValueFlags paintFlags) {
winforms\Managed\System\WinForms\PropertyGridInternal\DocComment.cs (1)
90
Graphics
g = m_labelDesc.CreateGraphicsInternal();
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (2)
156
private void DDB_Draw3DBorder(System.Drawing.
Graphics
g, Rectangle r, bool raised) {
213
internal override void DrawImageCore(
Graphics
graphics, Image image, Rectangle imageBounds, Point imageStart, ButtonBaseAdapter.LayoutData layout) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (8)
226
protected virtual Brush GetBackgroundBrush(
Graphics
g) {
1397
protected int GetLabelTextWidth(string labelText,
Graphics
g, Font f) {
1416
internal int GetValueTextWidth(string valueString,
Graphics
g, Font f) {
1861
public virtual void PaintLabel(System.Drawing.
Graphics
g, Rectangle rect, Rectangle clipRect, bool selected, bool paintFullLabel) {
1971
public virtual void PaintOutline(System.Drawing.
Graphics
g, Rectangle r) {
2001
private void PaintOutlineWithExplorerTreeStyle(System.Drawing.
Graphics
g, Rectangle r, IntPtr handle) {
2031
private void PaintOutlineWithClassicStyle(System.Drawing.
Graphics
g, Rectangle r) {
2088
public virtual void PaintValue(object val, System.Drawing.
Graphics
g, Rectangle rect, Rectangle clipRect, PaintValueFlags paintFlags) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
321
using (
Graphics
g = CreateGraphics()) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
598
public override void PaintLabel(System.Drawing.
Graphics
g, Rectangle rect, Rectangle clipRect, bool selected, bool paintFullLabel) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (19)
226
internal Brush GetBackgroundBrush(
Graphics
g) {
843
protected virtual void AdjustOrigin(System.Drawing.
Graphics
g, Point newOrigin, ref Rectangle r) {
1254
private int GetIPELabelLength(System.Drawing.
Graphics
g, GridEntry gridEntry) {
1260
private bool IsIPELabelLong(System.Drawing.
Graphics
g,GridEntry gridEntry) {
1266
protected virtual void DrawLabel(System.Drawing.
Graphics
g, int row, Rectangle rect, bool selected, bool fLongLabelRequest, ref Rectangle clipRect) {
1310
protected virtual void DrawValueEntry(System.Drawing.
Graphics
g, int row, ref Rectangle clipRect) {
1340
private /*protected virtual*/ void DrawValueEntry(System.Drawing.
Graphics
g, Rectangle rect, Rectangle clipRect, GridEntry gridEntry, object value, bool fetchValue) {
1343
private void DrawValue(System.Drawing.
Graphics
g, Rectangle rect, Rectangle clipRect, GridEntry gridEntry, object value, bool drawSelected, bool checkShouldSerialize, bool fetchValue, bool paintInPlace) {
1515
public virtual Brush GetLineBrush(
Graphics
g) {
1533
public virtual Brush GetSelectedItemWithFocusBackBrush(
Graphics
g)
2447
using (
Graphics
g = CreateGraphicsInternal()) {
2606
using (
Graphics
g = CreateGraphicsInternal()) {
3444
Graphics
g = pe.Graphics;
4217
protected virtual void ResetOrigin(System.Drawing.
Graphics
g) {
5629
private Bitmap GetSizeGripGlyph(
Graphics
g) {
5638
using (
Graphics
glyphGraphics =
Graphics
.FromImage(sizeGripGlyph))
6013
using (
Graphics
g = gridView.CreateGraphics()) {
6719
Graphics
g = CreateGraphics();
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (11)
84
public static void DrawParentBackground(
Graphics
g, Rectangle bounds, Control childControl) {
98
public static void DrawRadioButton(
Graphics
g, Point glyphLocation, RadioButtonState state) {
102
internal static void DrawRadioButton(
Graphics
g, Point glyphLocation, RadioButtonState state, IntPtr hWnd) {
121
public static void DrawRadioButton(
Graphics
g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, bool focused, RadioButtonState state) {
133
public static void DrawRadioButton(
Graphics
g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state) {
137
internal static void DrawRadioButton(
Graphics
g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, bool focused, RadioButtonState state, IntPtr hWnd) {
165
public static void DrawRadioButton(
Graphics
g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) {
179
public static void DrawRadioButton(
Graphics
g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state) {
183
internal static void DrawRadioButton(
Graphics
g, Point glyphLocation, Rectangle textBounds, string radioButtonText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused, RadioButtonState state, IntPtr hWnd) {
217
public static Size GetGlyphSize(
Graphics
g, RadioButtonState state) {
221
internal static Size GetGlyphSize(
Graphics
g, RadioButtonState state, IntPtr hWnd) {
winforms\Managed\System\WinForms\ScrollBarRenderer.cs (12)
50
public static void DrawArrowButton(
Graphics
g, Rectangle bounds, ScrollBarArrowButtonState state) {
63
public static void DrawHorizontalThumb(
Graphics
g, Rectangle bounds, ScrollBarState state) {
76
public static void DrawVerticalThumb(
Graphics
g, Rectangle bounds, ScrollBarState state) {
89
public static void DrawHorizontalThumbGrip(
Graphics
g, Rectangle bounds, ScrollBarState state) {
102
public static void DrawVerticalThumbGrip(
Graphics
g, Rectangle bounds, ScrollBarState state) {
115
public static void DrawRightHorizontalTrack(
Graphics
g, Rectangle bounds, ScrollBarState state) {
128
public static void DrawLeftHorizontalTrack(
Graphics
g, Rectangle bounds, ScrollBarState state) {
141
public static void DrawUpperVerticalTrack(
Graphics
g, Rectangle bounds, ScrollBarState state) {
154
public static void DrawLowerVerticalTrack(
Graphics
g, Rectangle bounds, ScrollBarState state) {
167
public static void DrawSizeBox(
Graphics
g, Rectangle bounds, ScrollBarSizeBoxState state) {
180
public static Size GetThumbGripSize(
Graphics
g, ScrollBarState state) {
193
public static Size GetSizeBoxSize(
Graphics
g, ScrollBarState state) {
winforms\Managed\System\WinForms\SplitContainer.cs (3)
1214
using (
Graphics
g = CreateGraphicsInternal()) {
1621
private void DrawFocus(
Graphics
g, Rectangle r) {
1706
Graphics
g = this.CreateGraphicsInternal();
winforms\Managed\System\WinForms\StatusBar.cs (4)
104
elementSize = vsRenderer.GetPartSize(
Graphics
.FromHwndInternal(this.Handle), ThemeSizeType.True);
110
elementSize = vsRenderer.GetPartSize(
Graphics
.FromHwndInternal(this.Handle), ThemeSizeType.True);
1038
Graphics
g =
Graphics
.FromHdcInternal(dis.hDC);
winforms\Managed\System\WinForms\StatusBarDrawItemEvent.cs (2)
32
public StatusBarDrawItemEventArgs(System.Drawing.
Graphics
g, Font font, Rectangle r, int itemId,
44
public StatusBarDrawItemEventArgs(System.Drawing.
Graphics
g, Font font, Rectangle r, int itemId,
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
555
Graphics
g = this.parent.CreateGraphicsInternal();
winforms\Managed\System\WinForms\TabControl.cs (2)
2057
using (
Graphics
g =
Graphics
.FromHdcInternal(dis.hDC)) {
winforms\Managed\System\WinForms\TableLayoutCellPaintEventArgs.cs (1)
28
public TableLayoutCellPaintEventArgs(
Graphics
g, Rectangle clipRectangle, Rectangle cellBounds, int column, int row) : base(g, clipRectangle) {
winforms\Managed\System\WinForms\TableLayoutPanel.cs (1)
415
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\TabRenderer.cs (9)
53
public static void DrawTabItem(
Graphics
g, Rectangle bounds, TabItemState state) {
65
public static void DrawTabItem(
Graphics
g, Rectangle bounds, bool focused, TabItemState state) {
84
public static void DrawTabItem(
Graphics
g, Rectangle bounds, string tabItemText, Font font, TabItemState state) {
94
public static void DrawTabItem(
Graphics
g, Rectangle bounds, string tabItemText, Font font, bool focused, TabItemState state) {
106
public static void DrawTabItem(
Graphics
g, Rectangle bounds, string tabItemText, Font font, TextFormatFlags flags, bool focused, TabItemState state) {
127
public static void DrawTabItem(
Graphics
g, Rectangle bounds, Image image, Rectangle imageRectangle, bool focused, TabItemState state) {
149
public static void DrawTabItem(
Graphics
g, Rectangle bounds, string tabItemText, Font font, Image image, Rectangle imageRectangle, bool focused, TabItemState state) {
161
public static void DrawTabItem(
Graphics
g, Rectangle bounds, string tabItemText, Font font, TextFormatFlags flags, Image image, Rectangle imageRectangle, bool focused, TabItemState state) {
187
public static void DrawTabPage(
Graphics
g, Rectangle bounds) {
winforms\Managed\System\WinForms\TextBox.cs (2)
848
using (
Graphics
g =
Graphics
.FromHdc(m.WParam)) {
winforms\Managed\System\WinForms\TextBoxRenderer.cs (6)
46
private static void DrawBackground(
Graphics
g, Rectangle bounds, TextBoxState state) {
69
public static void DrawTextBox(
Graphics
g, Rectangle bounds, TextBoxState state) {
80
public static void DrawTextBox(
Graphics
g, Rectangle bounds, string textBoxText, Font font, TextBoxState state) {
90
public static void DrawTextBox(
Graphics
g, Rectangle bounds, string textBoxText, Font font, Rectangle textBounds, TextBoxState state) {
100
public static void DrawTextBox(
Graphics
g, Rectangle bounds, string textBoxText, Font font, TextFormatFlags flags, TextBoxState state) {
116
public static void DrawTextBox(
Graphics
g, Rectangle bounds, string textBoxText, Font font, Rectangle textBounds, TextFormatFlags flags, TextBoxState state) {
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
233
Graphics
g = message.CreateGraphicsInternal();
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
477
using (
Graphics
g = this.parent.CreateGraphicsInternal()) {
winforms\Managed\System\WinForms\ToolStrip.cs (10)
2595
internal static
Graphics
GetMeasurementGraphics() {
2827
internal void PaintParentRegion(
Graphics
g, Region region) {
2840
using (
Graphics
g =
Graphics
.FromImage(image)) {
3628
Graphics
toolstripGraphics = e.Graphics;
3676
Graphics
itemGraphics =
Graphics
.FromHdcInternal(itemHDC.Handle);
3718
itemGraphics =
Graphics
.FromHdcInternal(itemHDC.Handle);
3809
Graphics
g = e.Graphics;
3933
internal void PaintInsertionMark(
Graphics
g) {
winforms\Managed\System\WinForms\ToolStripArrowRenderEventArgs.cs (3)
14
private
Graphics
graphics = null;
23
public ToolStripArrowRenderEventArgs(
Graphics
g, ToolStripItem toolStripItem, Rectangle arrowRectangle, Color arrowColor, ArrowDirection arrowDirection) {
75
public
Graphics
Graphics {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
684
protected override void DrawFlatComboDropDown(ComboBox comboBox,
Graphics
g, Rectangle dropDownRect) {
winforms\Managed\System\WinForms\ToolStripContentPanelRenderEventArgs.cs (3)
18
private
Graphics
graphics = null;
24
public ToolStripContentPanelRenderEventArgs(
Graphics
g, ToolStripContentPanel contentPanel) {
33
public
Graphics
Graphics {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
167
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripGripRenderEventArgs.cs (1)
19
public ToolStripGripRenderEventArgs(
Graphics
g, ToolStrip toolStrip) : base(g, toolStrip) {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (9)
53
Graphics
g = e.Graphics;
139
Graphics
g = e.Graphics;
183
Graphics
g = e.Graphics;
228
Graphics
g = e.Graphics;
255
Graphics
g = e.Graphics;
312
Graphics
g = e.Graphics;
357
Graphics
g = e.Graphics;
392
Graphics
g = e.Graphics;
419
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripItemImageRenderEventArgs.cs (2)
21
public ToolStripItemImageRenderEventArgs(
Graphics
g, ToolStripItem item, Rectangle imageRectangle) : base(g, item) {
30
public ToolStripItemImageRenderEventArgs(
Graphics
g, ToolStripItem item, Image image, Rectangle imageRectangle) : base(g, item) {
winforms\Managed\System\WinForms\ToolStripItemRenderEventArgs.cs (3)
16
private
Graphics
graphics = null;
22
public ToolStripItemRenderEventArgs(
Graphics
g, ToolStripItem item) {
32
public
Graphics
Graphics {
winforms\Managed\System\WinForms\ToolStripItemTextRenderEventArgs.cs (2)
33
public ToolStripItemTextRenderEventArgs(
Graphics
g, ToolStripItem item, string text, Rectangle textRectangle, Color textColor, Font textFont, TextFormatFlags format) : base(g, item) {
49
public ToolStripItemTextRenderEventArgs(
Graphics
g, ToolStripItem item, string text, Rectangle textRectangle, Color textColor, Font textFont, ContentAlignment textAlign) : base(g, item) {
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
313
internal void PaintText(
Graphics
g) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (3)
819
using (
Graphics
g =
Graphics
.FromImage(image)) {
1057
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripPanelRenderEventArgs.cs (3)
18
private
Graphics
graphics = null;
24
public ToolStripPanelRenderEventArgs(
Graphics
g, ToolStripPanel toolStripPanel) {
33
public
Graphics
Graphics {
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (1)
42
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (24)
148
Graphics
g = e.Graphics;
243
Graphics
g = e.Graphics;
313
Graphics
g = e.Graphics;
363
Graphics
g = e.Graphics;
431
Graphics
g = e.Graphics;
491
Graphics
g = e.Graphics;
610
Graphics
g = e.Graphics;
796
Graphics
g = e.Graphics;
836
private void FillWithDoubleGradient(Color beginColor, Color middleColor, Color endColor,
Graphics
g, Rectangle bounds, int firstGradientWidth, int secondGradientWidth, LinearGradientMode mode, bool flipHorizontal) {
911
Graphics
g = e.Graphics;
935
private void RenderPressedGradient(
Graphics
g, Rectangle bounds) {
956
Graphics
g = e.Graphics;
968
private void RenderBackgroundGradient(
Graphics
g, Control control, Color beginColor, Color endColor) {
972
private void RenderBackgroundGradient(
Graphics
g, Control control, Color beginColor, Color endColor, Orientation orientation) {
1013
Graphics
g = e.Graphics;
1033
Graphics
g = e.Graphics;
1054
Graphics
g = e.Graphics;
1159
Graphics
g = e.Graphics;
1218
private void RenderSelectedButtonFill(
Graphics
g, Rectangle bounds) {
1235
private void RenderCheckedButtonFill(
Graphics
g, Rectangle bounds) {
1256
private void RenderSeparatorInternal(
Graphics
g, ToolStripItem item, Rectangle bounds, bool vertical) {
1349
private void RenderPressedButtonFill(
Graphics
g, Rectangle bounds) {
1369
Graphics
g = e.Graphics;
1441
private Point RenderArrowInternal(
Graphics
g, Rectangle dropDownRect, ArrowDirection direction, Brush brush) {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (7)
707
Graphics
g = e.Graphics;
925
Graphics
g = e.Graphics;
939
using (
Graphics
textGraphics =
Graphics
.FromImage(textBmp)) {
1017
Graphics
g = e.Graphics;
1080
using (
Graphics
graphics =
Graphics
.FromImage(disabledBitmap)) {
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (4)
19
private
Graphics
graphics = null;
27
public ToolStripRenderEventArgs(
Graphics
g, ToolStrip toolStrip) {
39
public ToolStripRenderEventArgs(
Graphics
g, ToolStrip toolStrip, Rectangle affectedBounds, Color backColor) {
84
public
Graphics
Graphics {
winforms\Managed\System\WinForms\ToolStripSeparatorRenderEventArgs.cs (1)
22
public ToolStripSeparatorRenderEventArgs(
Graphics
g, ToolStripSeparator separator, bool vertical) : base(g, separator) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
607
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (11)
67
private static void FillBackground(
Graphics
g, Rectangle bounds, Color backColor) {
175
Graphics
g = e.Graphics;
220
Graphics
g = e.Graphics;
257
Graphics
g = e.Graphics;
334
Graphics
g = e.Graphics;
365
Graphics
g = e.Graphics;
456
Graphics
g = e.Graphics;
565
Graphics
g = e.Graphics;
599
private void RenderSeparatorInternal(
Graphics
g, ToolStripItem item, Rectangle bounds, bool vertical) {
661
private void RenderSmall3DBorderInternal (
Graphics
g, Rectangle bounds, ToolBarState state, bool rightToLeft) {
700
Graphics
g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
867
using (
Graphics
g =
Graphics
.FromHdcInternal(hdc.Handle)) {
winforms\Managed\System\WinForms\ToolTip.cs (2)
2600
Graphics
g =
Graphics
.FromHdcInternal(dc);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (14)
51
public static void DrawHorizontalTrack(
Graphics
g, Rectangle bounds) {
64
public static void DrawVerticalTrack(
Graphics
g, Rectangle bounds) {
77
public static void DrawHorizontalThumb(
Graphics
g, Rectangle bounds, TrackBarThumbState state) {
90
public static void DrawVerticalThumb(
Graphics
g, Rectangle bounds, TrackBarThumbState state) {
103
public static void DrawLeftPointingThumb(
Graphics
g, Rectangle bounds, TrackBarThumbState state) {
116
public static void DrawRightPointingThumb(
Graphics
g, Rectangle bounds, TrackBarThumbState state) {
129
public static void DrawTopPointingThumb(
Graphics
g, Rectangle bounds, TrackBarThumbState state) {
142
public static void DrawBottomPointingThumb(
Graphics
g, Rectangle bounds, TrackBarThumbState state) {
156
public static void DrawHorizontalTicks(
Graphics
g, Rectangle bounds, int numTicks, EdgeStyle edgeStyle) {
187
public static void DrawVerticalTicks(
Graphics
g, Rectangle bounds, int numTicks, EdgeStyle edgeStyle) {
217
public static Size GetLeftPointingThumbSize(
Graphics
g, TrackBarThumbState state) {
230
public static Size GetRightPointingThumbSize(
Graphics
g, TrackBarThumbState state) {
243
public static Size GetTopPointingThumbSize(
Graphics
g, TrackBarThumbState state) {
256
public static Size GetBottomPointingThumbSize(
Graphics
g, TrackBarThumbState state) {
winforms\Managed\System\WinForms\TreeView.cs (6)
2722
Graphics
g =
Graphics
.FromHdcInternal(nmcd.nmcd.hdc);
2820
Graphics
g =
Graphics
.FromHdcInternal(nmcd.nmcd.hdc);
3136
using (
Graphics
g =
Graphics
.FromHdc(m.WParam)) {
winforms\Managed\System\WinForms\Triangle.cs (1)
42
public static void Paint(
Graphics
g, Rectangle bounds, TriangleDirection dir, Brush backBr,
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (3)
374
public void DrawImage(
Graphics
g, Rectangle bounds, Image image) {
397
public void DrawImage(
Graphics
g, Rectangle bounds, ImageList imageList, int imageIndex) {
962
public HitTestCode HitTestBackground(
Graphics
g, Rectangle backgroundRectangle, Region region, Point pt, HitTestOptions options) {
winforms\Managed\System\WinForms\WinFormsUtils.cs (4)
63
public static
Graphics
CreateMeasurementGraphics() {
64
return
Graphics
.FromHdcInternal(WindowsGraphicsCacheManager.MeasurementGraphics.DeviceContext.Hdc);
604
private
Graphics
graphics;
730
public
Graphics
Graphics {
System.Windows.Forms.DataVisualization (28)
Common\Annotation\TextAnnotation.cs (2)
932
Graphics
graphics = null;
938
graphics =
Graphics
.FromImage( graphicsImage );
Common\General\Chart.cs (9)
251
using (
Graphics
newGraphics =
Graphics
.FromImage(bitmap))
272
using (
Graphics
metaGraphics =
Graphics
.FromImage(metaFile))
354
Graphics
offScreen =
Graphics
.FromImage( image );
1627
Graphics
offScreen =
Graphics
.FromImage(image);
1694
Graphics
graph,
Common\General\ChartGraphics.cs (2)
402
using(
Graphics
graphics =
Graphics
.FromImage(bitmap))
Common\General\ChartRenderingEngine.cs (1)
839
public
Graphics
Graphics
Common\General\GdiGraphics.cs (2)
709
public
Graphics
Graphics
728
Graphics
_graphics = null;
Common\Utilities\ImageLoader.cs (4)
366
internal bool GetAdjustedImageSize(string name,
Graphics
graphics, ref SizeF size)
384
internal static void GetAdjustedImageSize(Image image,
Graphics
graphics, ref SizeF size)
405
internal static bool DoDpisMatch(Image image,
Graphics
graphics)
410
internal static Image GetScaledImage(Image image,
Graphics
graphics)
WinForm\ChartWinControl.cs (7)
158
internal
Graphics
paintBufferBitmapGraphics = null;
440
paintBufferBitmapGraphics =
Graphics
.FromImage(paintBufferBitmap);
579
private void DrawException(
Graphics
graphics)
2145
using (
Graphics
g =
Graphics
.FromHwndInternal(Handle))
2160
using (
Graphics
g =
Graphics
.FromHwndInternal(Handle))
WinForm\Utilities\Printing.cs (1)
132
public void PrintPaint(
Graphics
graphics, Rectangle position)
System.Workflow.Activities (32)
Designers\StateDesigner.CommentLayoutGlyph.cs (1)
53
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
Designers\StateDesigner.cs (3)
1374
Graphics
graphics = e.Graphics;
1537
Graphics
graphics = e.Graphics;
1562
Graphics
graphics = e.Graphics;
Designers\StateDesigner.Layouts.cs (26)
232
public virtual void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
236
public virtual void OnLayoutPosition(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
240
public virtual void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
441
public override void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
458
public override void OnLayoutPosition(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
469
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
603
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
658
public override void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
683
public override void OnLayoutPosition(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
699
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
756
public override void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
781
public override void OnLayoutPosition(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
792
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
843
public override void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
858
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
888
public override void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
902
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
961
public override void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
979
public override void OnLayoutPosition(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
991
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
1121
public override void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
1177
public override void OnLayoutPosition(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
1189
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
1312
public override void OnLayoutSize(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize)
1356
public override void OnLayoutPosition(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
1390
public override void OnPaint(
Graphics
graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
Designers\StateMachineDesignerPaint.cs (2)
29
internal static Size MeasureString(
Graphics
graphics, Font font, string text, StringAlignment alignment, Size maxSize)
108
internal static void DrawConnector(
Graphics
graphics, Pen pen, Point[] points, Size connectorCapSize, Size maxCapSize, LineAnchor startConnectorCap, LineAnchor endConnectorCap)
System.Workflow.ComponentModel (90)
AuthoringOM\Design\ActivityDesigner.cs (8)
1047
public Image GetPreviewImage(
Graphics
compatibleGraphics)
1064
using (
Graphics
graphics =
Graphics
.FromImage(designerImage))
1979
using (
Graphics
graphics =
Graphics
.FromImage(temporaryBitmap))
2895
void IWorkflowDesignerMessageSink.OnLayoutPosition(
Graphics
graphics)
2906
void IWorkflowDesignerMessageSink.OnLayoutSize(
Graphics
graphics)
3059
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\DesignerHelpers.cs (17)
62
internal static Size MeasureString(
Graphics
graphics, Font font, string text, StringAlignment alignment, Size maxSize)
92
public static void DrawText(
Graphics
graphics, Font font, string text, Rectangle boundingRect, StringAlignment alignment, TextQuality textQuality, Brush textBrush)
130
public static void DrawImage(
Graphics
graphics, Image image, Rectangle destination, DesignerContentAlignment alignment)
138
internal static void DrawImage(
Graphics
graphics, Image image, Rectangle destination, float transparency)
156
public static void DrawImage(
Graphics
graphics, Image image, Rectangle destination, Rectangle source, DesignerContentAlignment alignment, float transparency, bool grayscale)
232
internal static void DrawSelection(
Graphics
graphics, Rectangle boundingRect, bool isPrimary, Size selectionSize, Rectangle[] grabHandles)
255
internal static void DrawGrabHandles(
Graphics
graphics, Rectangle[] grabHandles, bool isPrimary)
290
public static void Draw3DButton(
Graphics
graphics, Image image, Rectangle bounds, float transparency, ButtonState buttonState)
326
internal static void DrawGrid(
Graphics
graphics, Rectangle viewableRectangle)
366
public static void DrawExpandButton(
Graphics
graphics, Rectangle boundingRect, bool drawExpanded, CompositeDesignerTheme compositeDesignerTheme)
392
public static void DrawRoundedRectangle(
Graphics
graphics, Pen drawingPen, Rectangle rectangle, int radius)
420
internal static void DrawDropShadow(
Graphics
graphics, Rectangle shadowSourceRectangle, Color baseColor, int shadowDepth, LightSourcePosition lightSourcePosition, float lightSourceIntensity, bool roundEdges)
490
internal static void DrawDesignerBackground(
Graphics
graphics, ActivityDesigner designer)
579
internal static void DrawInvalidDesignerIndicator(
Graphics
graphics, ActivityDesigner activityDesigner)
589
internal static void DrawConnectors(
Graphics
graphics, Pen pen, Point[] points, Size connectorCapSize, Size maxCapSize, LineAnchor startConnectorCap, LineAnchor endConnectorCap)
904
private
Graphics
graphics;
911
internal Hdc(
Graphics
graphics)
AuthoringOM\Design\DesignerInterfaces.cs (8)
140
void OnLayoutPosition(
Graphics
graphics);
141
void OnLayoutSize(
Graphics
graphics);
309
private
Graphics
graphics;
312
public ActivityDesignerLayoutEventArgs(
Graphics
graphics, ActivityDesignerTheme designerTheme)
343
public
Graphics
Graphics
360
private
Graphics
graphics;
365
public ActivityDesignerPaintEventArgs(
Graphics
graphics, Rectangle clipRectangle, Rectangle viewPort, ActivityDesignerTheme designerTheme)
376
public
Graphics
Graphics
AuthoringOM\Design\DesignerWidgets.cs (16)
134
public override void Draw(
Graphics
graphics)
155
private void DrawButton(
Graphics
graphics, ScrollButton scrollButton)
191
public override void Draw(
Graphics
graphics)
402
public abstract void Draw(
Graphics
graphics);
728
public abstract void Draw(
Graphics
graphics);
1223
Graphics
graphics = paintArgs.Graphics;
1335
using (
Graphics
paletteGraphics = CreateGraphics())
1933
using (
Graphics
graphics =
Graphics
.FromImage(bitmap))
1951
using (
Graphics
graphics = CreateGraphics())
2164
using (
Graphics
graphics = this.parentControl.CreateGraphics())
2652
public void OnLayoutSize(
Graphics
graphics)
2669
public void Draw(
Graphics
graphics)
3365
public void OnLayoutSize(
Graphics
graphics, int minWidth)
3401
public void Draw(
Graphics
graphics, Rectangle viewPort)
3539
private Image GeneratePreview(
Graphics
graphics)
AuthoringOM\Design\FreeFormDesigner.cs (1)
1270
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\CommentGlyph.cs (1)
48
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (1)
65
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\ConnectionPointGlyph.cs (1)
20
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (1)
29
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\LockedActivityGlyph.cs (1)
52
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\ReadOnlyActivityGlyph.cs (1)
36
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (1)
25
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\ShadowGlyph.cs (1)
36
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (1)
201
private void DrawScrollIndicators(
Graphics
graphics)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (2)
680
using (
Graphics
draggedImageGraphics =
Graphics
.FromImage(draggedImage))
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
530
internal void Draw(
Graphics
graphics)
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
189
using (
Graphics
graphics = ParentView.CreateGraphics())
AuthoringOM\Design\MessageFilters\GlyphManager.cs (3)
104
protected abstract void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer);
110
internal void DrawActivated(
Graphics
graphics, ActivityDesigner designer)
115
internal void Draw(
Graphics
graphics, ActivityDesigner designer)
AuthoringOM\Design\MessageFilters\WindowManager.cs (1)
349
using (
Graphics
graphics = parentView.CreateGraphics())
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (2)
536
void IWorkflowDesignerMessageSink.OnLayoutPosition(
Graphics
graphics)
541
void IWorkflowDesignerMessageSink.OnLayoutSize(
Graphics
graphics)
AuthoringOM\Design\SequentialActivityDesigner.cs (1)
563
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
470
protected void DrawConnectors(
Graphics
graphics, Pen pen, Point[] points, LineAnchor startCap, LineAnchor endCap)
AuthoringOM\Design\WorkflowLayouts.cs (11)
55
public abstract void Update(
Graphics
graphics, LayoutUpdateReason reason);
125
public override void Update(
Graphics
graphics, LayoutUpdateReason reason)
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;
711
public override void Update(
Graphics
graphics, LayoutUpdateReason reason)
822
private Size GetPaperSize(
Graphics
graphics)
841
private Margins GetAdjustedMargins(
Graphics
graphics)
857
using (
Graphics
printerGraphics = this.printDocument.PrinterSettings.CreateMeasurementGraphics())
AuthoringOM\Design\WorkflowPrinting.cs (4)
112
Graphics
graphics = printPageArg.Graphics;
215
internal Margins GetHardMargins(
Graphics
graphics)
239
internal void PrintHeaderFooter(
Graphics
graphics, bool drawHeader, HeaderFooterData headerFooterPrintData)
308
Graphics
graphics = printPageArg.Graphics;
AuthoringOM\Design\WorkflowView.cs (4)
1291
using (
Graphics
graphics = CreateGraphics())
1532
using (
Graphics
graphics = CreateGraphics())
1560
using (
Graphics
viewPortGraphics =
Graphics
.FromImage(memoryBitmap))
System.WorkflowServices (4)
System\Workflow\Activities\Design\GradientPanel.cs (2)
92
Graphics
outputGraphics = e.Graphics;
106
private Rectangle DropRoundedRectangleShadow(Rectangle shadowRect,
Graphics
outputGraphics)
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (2)
42
protected override void OnPaint(
Graphics
graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
63
private Rectangle DropRoundedRectangleShadow(Rectangle shadowRect,
Graphics
outputGraphics)