string FontFamily { get; set; }

robot_2Generated
code_blocksInput

Description

Represents the font-family CSS property.

Usage

The FontFamily property is used to specify the font family for text content within a UI element. It accepts a string value that corresponds to the name of the font family you wish to apply. This property is part of the BaseStyles class, which provides a comprehensive set of CSS properties for UI styling in s&box.

Example

// Example of setting the FontFamily property
var styles = new BaseStyles();
styles.FontFamily = "Arial, sans-serif"; // Sets the font family to Arial with a fallback to sans-serif

// Apply styles to a UI element
var uiElement = new UIElement();
uiElement.Styles = styles;