RSX Code Reference
    Preparing search index...
    • rsx
    • InlineStyle

    Class InlineStyle

    Inline style storage for per-element style overrides.

    Provides a way to set CSS properties directly on an element, similar to the DOM's element.style API. Inline styles have the highest specificity in CSS cascade.

    Example usage in TypeScript:

    Index
    • Parameters

      • OptionalisInternalConstructor: boolean

      Returns InlineStyle

    • Clears all inline style properties.

      Returns void

    • Gets a CSS property value as a string.

      Parameters

      • property: string

        The CSS property name.

      Returns string

      The property value string, or empty if not set.

    • Parses and applies a CSS declaration string.

      Parameters

      • cssText: string

        CSS declarations (e.g., "color: red; padding: 10px").

      Returns void

    • Removes a CSS property.

      Parameters

      • property: string

        The CSS property name to remove.

      Returns void

    • Sets the border radius.

      Parameters

      • radius: number

        Border radius in points.

      Returns void

    • Sets the font size.

      Parameters

      • size: number

        Font size in points.

      Returns void

    • Sets the height property.

      Parameters

      • value: number

        Height in points, or negative for auto.

      Returns void

    • Sets margin (all sides).

      Parameters

      • value: number

        Margin in points.

      Returns any

    • Sets margin with individual sides.

      Parameters

      • top: number

        Top margin in points.

      • right: number

        Right margin in points.

      • bottom: number

        Bottom margin in points.

      • left: number

        Left margin in points.

      Returns any

    • Sets the opacity.

      Parameters

      • opacity: number

        Opacity value (0.0 to 1.0).

      Returns void

    • Sets padding (all sides).

      Parameters

      • value: number

        Padding in points.

      Returns any

    • Sets padding with individual sides.

      Parameters

      • top: number

        Top padding in points.

      • right: number

        Right padding in points.

      • bottom: number

        Bottom padding in points.

      • left: number

        Left padding in points.

      Returns any

    • Sets a CSS property value.

      Parameters

      • property: string

        The CSS property name (e.g., "background-color").

      • value: string

        The CSS value string (e.g., "#FF0000", "10px").

      Returns void

    • Sets the width property.

      Parameters

      • value: number

        Width in points, or negative for auto.

      Returns void