LinearGradientBrush Constructor (Color, Color, Point, Point)
.NET Framework (current version)
Initializes a new instance of the LinearGradientBrush class that has the specified start Color, end Color, StartPoint, and EndPoint.
Assembly: PresentationCore (in PresentationCore.dll)
public:
LinearGradientBrush(
Color startColor,
Color endColor,
Point startPoint,
Point endPoint
)
Parameters
- startColor
-
Type:
System.Windows.Media::Color
The Color at offset 0.0.
- endColor
-
Type:
System.Windows.Media::Color
The Color at offset 1.0.
- startPoint
-
Type:
System.Windows::Point
The StartPoint of the gradient.
- endPoint
-
Type:
System.Windows::Point
The EndPoint of the gradient.
The MappingMode of the brush is initialized to RelativeToBoundingBox.
.NET Framework
Available since 3.0
Available since 3.0
Show: