UStyleData
IStyleData, from Univer
See doc: Univer TypeDoc - IStyleData
public class UStyleData : IStyleBase
Remarks
Represents the full styling information for a cell or element, with support for nullables to allow optional property assignment.
Note: This class must be used instead of a struct to support nullable properties.
Properties
Property | Type | Default | Description |
---|---|---|---|
bbl | UTextDecoration? | null | Bottom border line |
bd | UBorderData? | null | Border data |
bg | UColorStyle? | null | Background color |
bl | int | 0 | Bold (0: false, 1: true) |
cl | UColorStyle? | null | Font color (foreground) |
ff | string | Arial | Font family |
fs | int | 10 | Font size |
ht | EHorizontalAlign | UNSPECIFIED | Horizontal alignment |
it | int | 0 | Italic (0: false, 1: true) |
n | UFormatStyle? | null | Number format pattern |
ol | UTextDecoration | new() | Overline decoration |
pd | UPaddingData | new() | Padding values |
st | UTextDecoration | new() | Strikethrough decoration |
tb | EWrapStrategy | UNSPECIFIED | Wrap strategy |
td | ETextDirection | UNSPECIFIED | Text direction |
tr | UTextRotation? | null | Text rotation |
ul | UTextDecoration | new() | Underline decoration |
vt | EVerticalAlign? | null | Vertical alignment |
va | object? | null | Subscript (only for Chinese, obsolete) |
Methods
IsDefault(UStyleData style)
Returns true if the given style object only contains default values (i.e., no meaningful formatting set).
public static bool IsDefault(UStyleData style)
Returns
true if all values are default; otherwise, false.