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

NameTypeAccessDescription
nameStringRead/WriteGets the name.
underlineFontUnderlineTypeRead/WriteGets the underline.
is_boldboolRead/WriteGets the is bold.
is_italicboolRead/WriteGets the is italic.
is_strikeoutboolRead/WriteGets the is strikeout.
colorOption<String>Read/WriteGets the color.

Methods

SignatureDescription
new()SelfInitializes a new instance.
get_name()&strGets the name.
set_name(value: impl Into<String>)Sets the name.
get_size()f64Gets the size.
set_size(value: f64)Sets the size.
get_double_size()f64Gets the font size.
set_double_size(value: f64)Sets the font size.
get_underline()FontUnderlineTypeGets the font underline type.
set_underline(value: FontUnderlineType)Sets the font underline type.
get_is_bold()boolGets a value indicating whether bold.
set_is_bold(value: bool)Sets a value indicating whether bold.
get_is_italic()boolGets a value indicating whether italic.
set_is_italic(value: bool)Sets a value indicating whether italic.
get_is_strikeout()boolGets 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()SelfCalls default on this Font instance.

See Also