Table of Contents

TTMSFNCStyles.FindCSSStyleProperty Method

Reads a single CSS property value from a named style rule in the browser document.

API unit family: TMSFNCStyles Declaring type: TTMSFNCStyles

Syntax

class function FindCSSStyleProperty(ARuleName, APropertyName: string): string; virtual;

Parameters

Name Description
ARuleName The CSS selector string identifying the rule, for example .TMSFNCGridStyle.
APropertyName The CSS property name to read, for example background or color.

Returns

The property value as a string, or an empty string if the rule or property is not found.