Font
Overview
Font is a struct in Aspose.Cells FOSS for Rust.
Inherits from: Debug, Clone, PartialEq, and 3 more.
Represents font.
This struct provides 19 methods for working with Font objects in Rust programs.
Available methods include: clear_color, default, get_color, get_double_size, get_is_bold, get_is_italic, get_is_strikeout, get_name, get_size, get_underline, new, set_color, and 7 additional methods.
All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.
Fields: color, is_bold, is_italic, is_strikeout, name, underline.
Fields
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read/Write | Gets the name. |
underline | FontUnderlineType | Read/Write | Gets the underline. |
is_bold | bool | Read/Write | Gets the is bold. |
is_italic | bool | Read/Write | Gets the is italic. |
is_strikeout | bool | Read/Write | Gets the is strikeout. |
color | Option<String> | Read/Write | Gets the color. |
Methods
| Signature | Description |
|---|---|
new() → Self | Initializes a new instance. |
get_name() → &str | Gets the name. |
set_name(value: impl Into<String>) | Sets the name. |
get_size() → f64 | Gets the size. |
set_size(value: f64) | Sets the size. |
get_double_size() → f64 | Gets the font size. |
set_double_size(value: f64) | Sets the font size. |
get_underline() → FontUnderlineType | Gets the font underline type. |
set_underline(value: FontUnderlineType) | Sets the font underline type. |
get_is_bold() → bool | Gets a value indicating whether bold. |
set_is_bold(value: bool) | Sets a value indicating whether bold. |
get_is_italic() → bool | Gets a value indicating whether italic. |
set_is_italic(value: bool) | Sets a value indicating whether italic. |
get_is_strikeout() → bool | Gets a value indicating whether single strikeout. |
set_is_strikeout(value: bool) | Sets a value indicating whether single strikeout. |
get_color() → Option<&str> | Gets the color. |
set_color(value: impl Into<String>) | Sets the color. |
clear_color() | Clears color. |
default() → Self | Calls default on this Font instance. |