107 references to Pen
System.Drawing (1)
commonui\System\Drawing\Pen.cs (1)
49
internal Pen(Color color, bool immutable) :
this
(color) {
System.Web.DataVisualization (4)
Common\ChartTypes\LineChart.cs (1)
168
private Pen _linePen = new
Pen
(Color.Black);
Common\ChartTypes\PieChart.cs (1)
2720
backSlicePen = new
Pen
(point.Color);
Common\General\Chart.cs (1)
374
Pen pen = new
Pen
(backGroundColor);
Common\General\ChartGraphics.cs (1)
5623
_pen = new
Pen
(Color.Black);
System.Web.Mobile (2)
UI\MobileControls\Design\Util\ImageCreator.cs (2)
82
Pen controlDarkPen = new
Pen
(SystemColors.ControlDark),
83
windowPen = new
Pen
(SystemColors.Window)
System.Windows.Forms (90)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
606
pen = new
Pen
(c);
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (3)
96
using (Pen windowFrame = new
Pen
(colors.windowFrame),
97
highlight = new
Pen
(colors.highlight),
98
buttonShadow = new
Pen
(colors.buttonShadow)) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (3)
43
using (Pen dark = new
Pen
(colors.buttonShadow),
44
light = new
Pen
(colors.buttonFace),
45
lightlight = new
Pen
(colors.highlight)) {
winforms\Managed\System\WinForms\ComboBox.cs (3)
6003
using (Pen outerBorderPen = new
Pen
(outerBorderColor)) {
6021
using (Pen innerBorderPen = new
Pen
(innerBorderColor)) {
6034
using (Pen borderPen = new
Pen
(borderPenColor)) {
winforms\Managed\System\WinForms\ControlPaint.cs (32)
678
pen = new
Pen
(topColor);
686
pen = new
Pen
(topColor);
694
pen = new
Pen
(topColor);
704
pen = new
Pen
(topHLSColor.Darker(1.0f - ((float)i)*inc));
715
pen = new
Pen
(topHLSColor.Lighter(1.0f - ((float)i)*inc));
733
pen = new
Pen
(leftColor);
741
pen = new
Pen
(leftColor);
749
pen = new
Pen
(leftColor);
759
pen = new
Pen
(leftHLSColor.Darker(1.0f - ((float)i)*inc));
769
pen = new
Pen
(leftHLSColor.Lighter(1.0f - ((float)i)*inc));
787
pen = new
Pen
(bottomColor);
795
pen = new
Pen
(bottomColor);
803
pen = new
Pen
(bottomColor);
813
pen = new
Pen
(bottomHLSColor.Lighter(1.0f - ((float)i)*inc));
824
pen = new
Pen
(bottomHLSColor.Darker(1.0f - ((float)i)*inc));
842
pen = new
Pen
(rightColor);
850
pen = new
Pen
(rightColor);
858
pen = new
Pen
(rightColor);
868
pen = new
Pen
(rightHLSColor.Lighter(1.0f - ((float)i)*inc));
879
pen = new
Pen
(rightHLSColor.Darker(1.0f - ((float)i)*inc));
990
Pen pen = new
Pen
(hls.Darker(1.0f));
1028
Pen pen = stockColor ? SystemPens.ControlLightLight : new
Pen
(hls.Lighter(1.0f));
1094
pen = new
Pen
(color);
1907
using( Pen bright = new
Pen
(LightLight(backColor)) ) {
1908
using ( Pen dark = new
Pen
(Dark(backColor)) ) {
1986
using (Pen borderPen = new
Pen
(System.Windows.Forms.VisualStyles.VisualStyleInformation.TextControlBorder)) {
2426
using (Pen pen = new
Pen
(SystemColors.Window)) {
2435
using (Pen pen = new
Pen
(SystemColors.Window)) {
2458
using (Pen pen = new
Pen
(SystemColors.Window)) {
2472
using (Pen pen = new
Pen
(SystemColors.Window)) {
2484
using (Pen pen = new
Pen
(SystemColors.Window)) {
2499
using (Pen pen = new
Pen
(SystemColors.Window)) {
winforms\Managed\System\WinForms\DataGrid.cs (2)
662
return new
Pen
(SystemColors.ControlText);
2185
headerForePen = new
Pen
(value);
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
132
return new
Pen
(SystemColors.ActiveCaptionText);
winforms\Managed\System\WinForms\DataGridParentRows.cs (1)
955
g.DrawLine(new
Pen
(SystemColors.ControlDark),
winforms\Managed\System\WinForms\DataGridTable.cs (2)
354
return new
Pen
(SystemColors.ControlText);
733
headerForePen = new
Pen
(value);
winforms\Managed\System\WinForms\DataGridView.cs (2)
466
this.gridPen = new
Pen
(DefaultGridColor);
3339
this.gridPen = new
Pen
(value);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1391
using (Pen pen = new
Pen
(foreBrush.Color))
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2362
pen= new
Pen
(highlight);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
6853
pen = new
Pen
(color);
winforms\Managed\System\WinForms\GroupBox.cs (3)
557
Pen light = new
Pen
(ControlPaint.Light(backColor, 1.0f));
558
Pen dark = new
Pen
(ControlPaint.Dark(backColor, 0f));
638
boxPen = new
Pen
(boxColor);
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (4)
225
Pen light = new
Pen
(ControlPaint.Light(backColor, 1.0f));
226
Pen dark = new
Pen
(ControlPaint.Dark(backColor, 0f));
281
Pen light = new
Pen
(SystemColors.ControlLight);
282
Pen dark = new
Pen
(SystemColors.ControlDark);
winforms\Managed\System\WinForms\ListBox.cs (1)
2281
using (Pen pen = new
Pen
(VisualStyleInformation.TextControlBorder)) {
winforms\Managed\System\WinForms\ListView.cs (1)
6232
g.DrawRectangle(new
Pen
(VisualStyleInformation.TextControlBorder), rect);
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
3182
using (Pen pen = new
Pen
(VisualStyleInformation.TextControlBorder)) {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1735
using (Pen pen = new
Pen
(SystemColors.ControlDark))
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
1894
Pen linePen = new
Pen
(gridHost.GetLineColor());
2060
p = new
Pen
(penColor);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
3513
Pen linePen = new
Pen
(g.GetNearestColor(ownerGrid.LineColor));
winforms\Managed\System\WinForms\TableLayoutPanel.cs (1)
472
using (Pen pen = new
Pen
(SystemColors.Window)) {
winforms\Managed\System\WinForms\TextBox.cs (1)
850
using (Pen pen = new
Pen
(VisualStyleInformation.TextControlBorder)) {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
259
using (Pen p = new
Pen
(SystemColors.ButtonShadow)) {
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (1)
45
using( Pen p = new
Pen
(SystemColors.ButtonShadow) ) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (12)
334
using (Pen p = new
Pen
(ColorTable.ButtonSelectedBorder)) {
346
using (Pen p = new
Pen
(ColorTable.ButtonSelectedBorder)) {
378
using (Pen p = new
Pen
(ColorTable.ToolStripBorder)) {
522
using (Pen p = new
Pen
(borderColor)) {
565
using (Pen p = new
Pen
(borderColor)) {
920
using (Pen p = new
Pen
(ColorTable.ButtonSelectedBorder)) {
946
using (Pen p = new
Pen
(ColorTable.MenuBorder)) {
1038
using (Pen p = new
Pen
(ColorTable.MenuBorder)) {
1101
using (Pen p = new
Pen
(overflowBottomLeftShadow/*Color.HotPink*/)) {
1259
Pen foreColorPen = new
Pen
(foreColor);
1260
Pen highlightColorPen = new
Pen
(highlightColor);
1395
using (Pen p = new
Pen
(ColorTable.ButtonSelectedBorder)) {
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (3)
88
pen = new
Pen
(color);
233
e.Graphics.DrawRectangle(new
Pen
(SystemColors.ControlDark), bounds);
412
using (Pen p = new
Pen
(borderColor)) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
880
using (Pen p = new
Pen
(outerBorderColor)) {
winforms\Managed\System\WinForms\TreeView.cs (1)
3138
g.DrawRectangle(new
Pen
(VisualStyleInformation.TextControlBorder), rect);
winforms\Managed\System\WinForms\UpDownBase.cs (2)
824
using (Pen pen = new
Pen
(BackColor)) {
1734
using (Pen pen = new
Pen
(this.parent.BackColor)) {
System.Windows.Forms.DataVisualization (4)
Common\ChartTypes\LineChart.cs (1)
168
private Pen _linePen = new
Pen
(Color.Black);
Common\ChartTypes\PieChart.cs (1)
2720
backSlicePen = new
Pen
(point.Color);
Common\General\Chart.cs (1)
374
Pen pen = new
Pen
(backGroundColor);
Common\General\ChartGraphics.cs (1)
5623
_pen = new
Pen
(Color.Black);
System.Workflow.ComponentModel (3)
AuthoringOM\Design\DesignerHelpers.cs (3)
297
using (Pen lightPen = new
Pen
(Color.FromArgb(alpha, SystemColors.ControlLightLight)))
298
using (Pen darkPen = new
Pen
(Color.FromArgb(alpha, SystemColors.ControlDark)))
299
using (Pen darkdarkPen = new
Pen
(Color.FromArgb(alpha, SystemColors.ControlDarkDark)))
System.WorkflowServices (3)
System\Workflow\Activities\Design\GradientPanel.cs (2)
102
e.Graphics.DrawPath(new
Pen
(this.BorderColor), RoundedRect(frameRect));
109
using (Pen shadowPen = new
Pen
(Color.FromArgb(shadowIntensity, 0, 0, 0)))
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (1)
67
using (Pen shadowPen = new
Pen
(Color.FromArgb(shadowIntensity, 0, 0, 0)))