Skip to end of metadata
Go to start of metadata

Represents a class for linear gradient brush.

Definition

public sealed class LinearGradientBrush : GradientBrush

Summary

The following table summarizes the members exposed in this class.

Public Constructors

LinearGradientBrush Constructor() Create an instance of LinearGradientBrush.
LinearGradientBrush Constructor(Color, Color) Create an instance of LinearGradientBrush.
LinearGradientBrush Constructor(Color, Color, Nullable<double>) Create an instance of LinearGradientBrush.

Public Properties

EndPoint Gets or sets the end point.
StartPoint Gets or sets the start point.

Fields

EndPointProperty Identifies the EndPoint property description.
StartPointProperty Identifies the StartPoint property description.

Public Methods

Equals(Brush) Returns a value indicating whether this instance and a specified brush object represent the same value.

Public Constructors

public LinearGradientBrush()

Create an instance of LinearGradientBrush.

public LinearGradientBrush(Color start, Color end)

Create an instance of LinearGradientBrush.

Parameters

start The start color.
end The end color.

public LinearGradientBrush(Color start, Color end, Nullable<double> angle)

Create an instance of LinearGradientBrush.

Parameters

start The start color.
end The end color.
angle The gradient angle.

Public Properties

public Point EndPoint { get; set; }

Gets or sets the end point.

public Point StartPoint { get; set; }

Gets or sets the start point.

Fields

public static PropertyDescription EndPointProperty

Identifies the EndPoint property description.

public static PropertyDescription StartPointProperty

Identifies the StartPoint property description.

Public Methods

public bool Equals(Brush obj)

Returns a value indicating whether this instance and a specified brush object represent the same value.

Parameters

obj A brush object to compare to this instance.

Return Types

true if obj is equal to this instance; otherwise, false.
  • No labels