RCSSStyleDeclaration

Summary

Remarks

Danger

All calls made within this class MUST be performed on the Master Thread. See RunLater on how to safely call this from an asynchronous thread. Failure to comply with this can cause catastrophical failures as the engine is not designed for this.

Definition

Namespace: SDT4.Managed.UI.RML
Assembly: SDT4.Managed.UI.dll

sealed class RCSSStyleDeclaration
Inheritance:

Object ➔ DynamicObject ➔ RCSSStyleDeclaration

Implements:

IDynamicMetaObjectProvider

Fields

Name Type Description

Properties

Name Type Description
public get; set; Item String Access style value by exact string name (e.g., Style["background-color"])

Methods

public Void Remove(String name)

Summary: Removes style from element

Parameters:


public virtual Boolean TryGetMember(GetMemberBinder binder, out Object result)

Summary: Handles dynamic property reads (e.g., var color = Style.Color;)

Parameters:

Returns:


public virtual Boolean TrySetMember(SetMemberBinder binder, Object? value)

Summary: Handles dynamic property writes (e.g., Style.BackgroundColor = "red";)

Parameters:

Returns: