Class FourCorners<TValue>
Represents four values of "something" that matches four corners of a bounding box (for example, four colors for a gradient border).
Inheritance
Implements
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
[ConcreteImplementation(DisplayName = "4-Corners")]
[DataContract]
public class FourCorners<TValue> : IEquatable<FourCorners<TValue>>
Type Parameters
Name | Description |
---|---|
TValue |
Constructors
| Improve this Doc View SourceFourCorners()
Initializes a new instance of the FourCorners<TValue> class.
Declaration
public FourCorners()
FourCorners(TValue)
Initializes a new instance of the FourCorners<TValue> class.
Declaration
public FourCorners(TValue value)
Parameters
Type | Name | Description |
---|---|---|
TValue | value | Value. |
FourCorners(TValue, TValue, TValue, TValue)
Initializes a new instance of the FourCorners<TValue> class.
Declaration
public FourCorners(TValue bottomLeft, TValue bottomRight, TValue topLeft, TValue topRight)
Parameters
Type | Name | Description |
---|---|---|
TValue | bottomLeft | Bottom left. |
TValue | bottomRight | Bottom right. |
TValue | topLeft | Top left. |
TValue | topRight | Top right. |
Properties
| Improve this Doc View SourceBottomLeft
Gets or sets the bottom left value.
Declaration
[DataMember]
public TValue BottomLeft { get; set; }
Property Value
Type | Description |
---|---|
TValue | The bottom left value. |
BottomRight
Gets or sets the bottom right value.
Declaration
[DataMember]
public TValue BottomRight { get; set; }
Property Value
Type | Description |
---|---|
TValue | The bottom right value. |
IsOneValue
Gets a value indicating whether this FourCorners<TValue> contains only a single value.
Declaration
public bool IsOneValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
TopLeft
Gets or sets the top left value.
Declaration
[DataMember]
public TValue TopLeft { get; set; }
Property Value
Type | Description |
---|---|
TValue | The top left value. |
TopRight
Gets or sets the top right value.
Declaration
[DataMember]
public TValue TopRight { get; set; }
Property Value
Type | Description |
---|---|
TValue | The top right value. |
Methods
| Improve this Doc View SourceConvert<TNewValue>(Func<TValue, TNewValue>)
Converts the four corners with a new value.
Declaration
public FourCorners<TNewValue> Convert<TNewValue>(Func<TValue, TNewValue> convert)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TValue, TNewValue> | convert | Convert. |
Returns
Type | Description |
---|---|
FourCorners<TNewValue> | The convert. |
Type Parameters
Name | Description |
---|---|
TNewValue | The type of the converted object. |
Equals(FourCorners<TValue>)
Declaration
public bool Equals(FourCorners<TValue> other)
Parameters
Type | Name | Description |
---|---|---|
FourCorners<TValue> | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |