62 references to LinearGradientMode
System.Drawing (8)
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (8)
95
LinearGradientMode
linearGradientMode)
99
if (!ClientUtils.IsEnumValid(linearGradientMode, unchecked((int)linearGradientMode), (int)
LinearGradientMode
.Horizontal, (int)
LinearGradientMode
.BackwardDiagonal)){
100
throw new InvalidEnumArgumentException("linearGradientMode", unchecked((int)linearGradientMode), typeof(
LinearGradientMode
));
134
LinearGradientMode
linearGradientMode)
138
if (!ClientUtils.IsEnumValid(linearGradientMode, unchecked((int)linearGradientMode), (int)
LinearGradientMode
.Horizontal, (int)
LinearGradientMode
.BackwardDiagonal))
140
throw new InvalidEnumArgumentException("linearGradientMode", unchecked((int)linearGradientMode), typeof(
LinearGradientMode
));
System.Web.DataVisualization (5)
Common\General\ChartGraphics.cs (1)
5170
LinearGradientMode
.Vertical) )
Common\General\ChartGraphics3D.cs (4)
3290
(isVertical) ?
LinearGradientMode
.Vertical :
LinearGradientMode
.Horizontal))
3346
(isVertical) ?
LinearGradientMode
.Vertical :
LinearGradientMode
.Horizontal))
System.Windows.Forms (21)
winforms\Managed\System\WinForms\ToolStripComboBox.cs (3)
702
using (Brush b = new LinearGradientBrush(dropDownRect, colorTable.ComboBoxButtonSelectedGradientBegin, colorTable.ComboBoxButtonSelectedGradientEnd,
LinearGradientMode
.Vertical)) {
712
using (Brush b = new LinearGradientBrush(dropDownRect, colorTable.ComboBoxButtonGradientBegin, colorTable.ComboBoxButtonGradientEnd,
LinearGradientMode
.Vertical)) {
718
using (Brush b = new LinearGradientBrush(dropDownRect, colorTable.ComboBoxButtonPressedGradientBegin, colorTable.ComboBoxButtonPressedGradientEnd,
LinearGradientMode
.Vertical)) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (18)
415
FillWithDoubleGradient(ColorTable.OverflowButtonGradientBegin, ColorTable.OverflowButtonGradientMiddle, ColorTable.OverflowButtonGradientEnd, e.Graphics, edging, iconWellGradientWidth, iconWellGradientWidth,
LinearGradientMode
.Vertical, /*flipHorizontal=*/false);
558
using (Brush b = new LinearGradientBrush(bounds, ColorTable.MenuItemSelectedGradientBegin, ColorTable.MenuItemSelectedGradientEnd,
LinearGradientMode
.Vertical)) {
618
FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, iconWellGradientWidth, iconWellGradientWidth,
LinearGradientMode
.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes));
836
private void FillWithDoubleGradient(Color beginColor, Color middleColor, Color endColor, Graphics g, Rectangle bounds, int firstGradientWidth, int secondGradientWidth,
LinearGradientMode
mode, bool flipHorizontal) {
844
if (mode ==
LinearGradientMode
.Horizontal) {
876
if (mode ==
LinearGradientMode
.Horizontal) {
941
using (Brush b = new LinearGradientBrush(bounds, ColorTable.MenuItemPressedGradientBegin, ColorTable.MenuItemPressedGradientEnd,
LinearGradientMode
.Vertical)) {
985
using (LinearGradientBrush b = new LinearGradientBrush(gradientBounds, beginColor, endColor,
LinearGradientMode
.Horizontal)){
995
using (LinearGradientBrush b = new LinearGradientBrush(gradientBounds, beginColor, endColor,
LinearGradientMode
.Horizontal)){
1017
LinearGradientMode
mode = (toolStrip.Orientation == Orientation.Horizontal) ?
LinearGradientMode
.Vertical :
LinearGradientMode
.Horizontal;
1112
LinearGradientMode
mode = (horizontal) ?
LinearGradientMode
.Vertical :
LinearGradientMode
.Horizontal;
1224
using (Brush b = new LinearGradientBrush(bounds, ColorTable.ButtonSelectedGradientBegin, ColorTable.ButtonSelectedGradientEnd,
LinearGradientMode
.Vertical)) {
1241
using (Brush b = new LinearGradientBrush(bounds, ColorTable.ButtonCheckedGradientBegin, ColorTable.ButtonCheckedGradientEnd,
LinearGradientMode
.Vertical)) {
1355
using (Brush b = new LinearGradientBrush(bounds, ColorTable.ButtonPressedGradientBegin, ColorTable.ButtonPressedGradientEnd,
LinearGradientMode
.Vertical)) {
System.Windows.Forms.DataVisualization (5)
Common\General\ChartGraphics.cs (1)
5170
LinearGradientMode
.Vertical) )
Common\General\ChartGraphics3D.cs (4)
3290
(isVertical) ?
LinearGradientMode
.Vertical :
LinearGradientMode
.Horizontal))
3346
(isVertical) ?
LinearGradientMode
.Vertical :
LinearGradientMode
.Horizontal))
System.Workflow.Activities (11)
Designers\CodeDesigner.cs (1)
32
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\DelayDesigner.cs (1)
32
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\EventSinkActivityDesigner.cs (1)
103
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\InvokeMethodActivityDesigner.cs (1)
102
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\InvokeWebServiceDesigner.cs (1)
191
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\PolicyDesigner.cs (1)
99
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\SetStateDesigner.cs (1)
215
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\StateDesigner.Layouts.cs (1)
1022
using (Brush linearGradientBrush = new LinearGradientBrush(rectangle, color1, color2,
LinearGradientMode
.Vertical))
Designers\WebServiceFaultDesigner.cs (1)
50
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\WebServiceReceiveDesigner.cs (1)
89
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
Designers\WebServiceResponseDesigner.cs (1)
63
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
System.Workflow.ComponentModel (10)
AuthoringOM\Behaviors\CompensateDesigner.cs (1)
50
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
386
using (Brush linearGradientBrush = new LinearGradientBrush(rectangle, color1, color2,
LinearGradientMode
.Vertical))
473
using (Brush linearGradientBrush = new LinearGradientBrush(rectangle, color2, color1,
LinearGradientMode
.Vertical))
AuthoringOM\Design\Themes.cs (4)
993
private
LinearGradientMode
backgroundStyle =
LinearGradientMode
.Horizontal;
1233
public virtual
LinearGradientMode
BackgroundStyle
1636
this.expandButtonBackBrush = new LinearGradientBrush(this.expandButtonRectangle, Color.White, Color.FromArgb(173, 170, 156),
LinearGradientMode
.ForwardDiagonal);
AuthoringOM\FaultDesigner.cs (1)
35
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
AuthoringOM\SuspendDesigner.cs (1)
32
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
AuthoringOM\TerminateDesigner.cs (1)
32
this.BackgroundStyle =
LinearGradientMode
.Horizontal;
System.WorkflowServices (2)
System\Workflow\Activities\ReceiveActivityDesignerTheme.cs (1)
29
base.BackgroundStyle = System.Drawing.Drawing2D.
LinearGradientMode
.Vertical;
System\Workflow\Activities\SendActivityDesignerTheme.cs (1)
28
base.BackgroundStyle = System.Drawing.Drawing2D.
LinearGradientMode
.Vertical;