Show / Hide Table of Contents

    Interface IBorderFactory

    A factory for creating borders (IBorderStyle).

    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public interface IBorderFactory

    Methods

    | Improve this Doc View Source

    Gradient(FourCorners<Color>, FourCorners<Boolean>, Single)

    Creates a gradient border (you can give a different color for each of the corners, and the border color will interpolate between them).

    Declaration
    IBorderStyle Gradient(FourCorners<Color> color, FourCorners<bool> hasRoundCorners, float lineWidth = 10F)
    Parameters
    Type Name Description
    FourCorners<Color> color

    Color.

    FourCorners<System.Boolean> hasRoundCorners

    For each corner you can select whether it is a round corner or a square corner.

    System.Single lineWidth

    Line width.

    Returns
    Type Description
    IBorderStyle

    The border.

    | Improve this Doc View Source

    Gradient(FourCorners<Color>, Single, Boolean)

    Creates a gradient border (you can give a different color for each of the corners, and the border color will interpolate between them).

    Declaration
    IBorderStyle Gradient(FourCorners<Color> color, float lineWidth = 10F, bool hasRoundCorners = false)
    Parameters
    Type Name Description
    FourCorners<Color> color

    Color.

    System.Single lineWidth

    Line width.

    System.Boolean hasRoundCorners

    If set to true has round corners.

    Returns
    Type Description
    IBorderStyle

    The border.

    | Improve this Doc View Source

    Multiple(IBorderStyle[])

    Combines multiple borders into a single border.

    Declaration
    IBorderStyle Multiple(params IBorderStyle[] borders)
    Parameters
    Type Name Description
    IBorderStyle[] borders

    Borders.

    Returns
    Type Description
    IBorderStyle

    The border.

    | Improve this Doc View Source

    SolidColor(Color, Single, Boolean)

    Creates a solid color border.

    Declaration
    IBorderStyle SolidColor(Color color, float lineWidth = 10F, bool hasRoundCorners = false)
    Parameters
    Type Name Description
    Color color

    Color.

    System.Single lineWidth

    Line width.

    System.Boolean hasRoundCorners

    If set to true has round corners.

    Returns
    Type Description
    IBorderStyle

    The border.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX