Action
    Preparing search index...

    A collection of properties describing the styles of a user interface element.

    2.0

    Hierarchy (View Summary)

    Index

    Methods

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Determines whether the specified object is equal to the current object.

      Parameters

      • obj: any

        The object to compare with the current object.

      Returns boolean

      true if the specified object is equal to the current object; otherwise, false.

    • Serves as the default hash function.

      Returns number

      A hash code for the current object.

    • Returns a string that represents the current object.

      Returns string

      A string that represents the current object.

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns null | T1

    • Determines whether the specified object instances are considered equal.

      Parameters

      • objA: any

        The first object to compare.

      • objB: any

        The second object to compare.

      Returns boolean

      true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

    Default capability

    • get BorderBottomColor(): ColorInfo

      Gets the border bottom color.

      Returns ColorInfo

      2.0

    • get BorderBottomWidth(): number

      Gets the bottom border width.

      Returns number

      2.0

    • get BorderLeftWidth(): number

      Gets the left border width.

      Returns number

      2.0

    • get BorderRightWidth(): number

      Gets the right border width.

      Returns number

      2.0

    • get BorderTopWidth(): number

      Gets the top border width.

      Returns number

      2.0

    • get FontFamily(): string

      Gets the font family name.

      Returns string

      2.0

    • get FontSize(): number

      Gets the size of the font.

      Returns number

      2.0

    • get MarginBottom(): number

      Gets the bottom margin.

      Returns number

      2.0

    • get MarginLeft(): number

      Gets the left margin.

      Returns number

      2.0

    • get MarginRight(): number

      Gets the right margin.

      Returns number

      2.0

    • get MarginTop(): number

      Gets the top margin.

      Returns number

      2.0

    • get PaddingBottom(): number

      Gets the bottom padding.

      Returns number

      2.0

    • get PaddingLeft(): number

      Gets the left padding.

      Returns number

      2.0

    • get PaddingRight(): number

      Gets the right padding.

      Returns number

      2.0

    • get PaddingTop(): number

      Gets the top padding.

      Returns number

      2.0

    • get SecondaryColor(): ColorInfo

      Gets the secondary color. Used when rendering labels etc. on graphical elements (bars, lines, etc.) when the Color has worse contrast to the background.

      Returns ColorInfo

      2.0

    • Creates a font from current settings.

      Returns FontMetadata

      The font metadata.

      2.0

    • Gets a suitable color to use for painting the background. Use this to render the background of an element that does not support transparency. This method is typically only relevant for Forms based implementations of views for CustomVisuals etc. If your view is based on HTML and Javascript (that is, derived from CustomVisualView) you can just leave your background transparent to use the theme color of the page.

      Returns Color

      A color.

      2.0

    • Creates a string containing the CSS corrsponding to the current property values.

      Returns string

      A CSS string.

      2.0