Skip to main content
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the ending two-dimensional coordinates of the linear gradient.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public Point EndPoint { get; set; }
public:
property Point EndPoint {
	Point get();
	void set(Point value);
}
member EndPoint : Point with get, set
Public Property EndPoint As Point

Property Value

Type:

The ending two-dimensional coordinates of the linear gradient. The default is (1,1).

A LinearGradientBrush paints a gradient along a line. The line's start and end points are defined by the and properties of the LinearGradientBrush.

The default linear gradient is diagonal. In the default, the of a linear gradient is (0,0), the upper-left corner of the area being filled, and its is (1,1), the lower-right corner of the area being filled. The colors in the resulting gradient are interpolated along the diagonal path.

The following image shows a diagonal gradient. The black line was added to highlight the interpolation path of the gradient from the start point to the end point.

Gradient axis for a diagonal linear gradient

A diagonal linear gradient

Note that the property of a LinearGradientBrush determines whether its is interpreted as a relative or absolute value. A of RelativeToBoundingBox specifies that the value is relative to the size of the painted area. A of Absolute specifies that the value is expressed in device independent pixels. By default, the is set to RelativeToBoundingBox, making the a relative value.

Identifier field

EndPointProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top