Show / Hide Table of Contents

    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
    System.Object
    FourCorners<TValue>
    Implements
    System.IEquatable<FourCorners<TValue>>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    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 Source

    FourCorners()

    Initializes a new instance of the FourCorners<TValue> class.

    Declaration
    public FourCorners()
    | Improve this Doc View Source

    FourCorners(TValue)

    Initializes a new instance of the FourCorners<TValue> class.

    Declaration
    public FourCorners(TValue value)
    Parameters
    Type Name Description
    TValue value

    Value.

    | Improve this Doc View Source

    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 Source

    BottomLeft

    Gets or sets the bottom left value.

    Declaration
    [DataMember]
    public TValue BottomLeft { get; set; }
    Property Value
    Type Description
    TValue

    The bottom left value.

    | Improve this Doc View Source

    BottomRight

    Gets or sets the bottom right value.

    Declaration
    [DataMember]
    public TValue BottomRight { get; set; }
    Property Value
    Type Description
    TValue

    The bottom right value.

    | Improve this Doc View Source

    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

    true if is one value; otherwise, false.

    | Improve this Doc View Source

    TopLeft

    Gets or sets the top left value.

    Declaration
    [DataMember]
    public TValue TopLeft { get; set; }
    Property Value
    Type Description
    TValue

    The top left value.

    | Improve this Doc View Source

    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 Source

    Convert<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.

    | Improve this Doc View Source

    Equals(FourCorners<TValue>)

    Declaration
    public bool Equals(FourCorners<TValue> other)
    Parameters
    Type Name Description
    FourCorners<TValue> other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX