Struct D2D1LinearGradientBrushProperties
Contains the starting point and endpoint of the gradient axis for an D2D1LinearGradientBrush.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1LinearGradientBrushProperties : IEquatable<D2D1LinearGradientBrushProperties>
Constructors
| Edit this page View SourceD2D1LinearGradientBrushProperties(D2D1Point2F, D2D1Point2F)
Initializes a new instance of the D2D1LinearGradientBrushProperties struct.
Declaration
public D2D1LinearGradientBrushProperties(D2D1Point2F startPoint, D2D1Point2F endPoint)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | startPoint | The starting point of the gradient axis, in the brush's coordinate space. |
D2D1Point2F | endPoint | The endpoint of the gradient axis, in the brush's coordinate space. |
Properties
| Edit this page View SourceEndPoint
Gets or sets the endpoint of the gradient axis, in the brush's coordinate space.
Declaration
public D2D1Point2F EndPoint { get; set; }
Property Value
Type | Description |
---|---|
D2D1Point2F |
StartPoint
Gets or sets the starting point of the gradient axis, in the brush's coordinate space.
Declaration
public D2D1Point2F StartPoint { get; set; }
Property Value
Type | Description |
---|---|
D2D1Point2F |
Methods
| Edit this page View SourceEquals(D2D1LinearGradientBrushProperties)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1LinearGradientBrushProperties other)
Parameters
Type | Name | Description |
---|---|---|
D2D1LinearGradientBrushProperties | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D2D1LinearGradientBrushProperties, D2D1LinearGradientBrushProperties)
Compares two D2D1LinearGradientBrushProperties objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1LinearGradientBrushProperties left, D2D1LinearGradientBrushProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1LinearGradientBrushProperties | left | The left D2D1LinearGradientBrushProperties to compare. |
D2D1LinearGradientBrushProperties | right | The right D2D1LinearGradientBrushProperties to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1LinearGradientBrushProperties, D2D1LinearGradientBrushProperties)
Compares two D2D1LinearGradientBrushProperties objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1LinearGradientBrushProperties left, D2D1LinearGradientBrushProperties right)
Parameters
Type | Name | Description |
---|---|---|
D2D1LinearGradientBrushProperties | left | The left D2D1LinearGradientBrushProperties to compare. |
D2D1LinearGradientBrushProperties | right | The right D2D1LinearGradientBrushProperties to compare. |
Returns
Type | Description |
---|---|
bool |