Windows Dev Center

LinearGradientBrush.LinearGradientBrush(GradientStopCollection, Double) constructor

Initializes a new instance of the LinearGradientBrush class that has the specified GradientStopCollection and angle.

Syntax


public LinearGradientBrush(
  GradientStopCollection gradientStopCollection, 
  double angle
)

Parameters

gradientStopCollection

Type: GradientStopCollection

The GradientStops to set on this brush.

angle

Type: System.Double [.NET] | float64 [C++]

A System.Double that represents the angle, in degrees, of the gradient. A value of 0 creates a horizontal gradient, and a value of 90 creates a vertical gradient. Negative values are permitted, as are values over 360 (which are treated as mod 360).

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

LinearGradientBrush

 

 

Show:
© 2015 Microsoft