Aspose::Cells::DefaultStyleSettings class

DefaultStyleSettings class

Settings for the default values of workbook’s style properties.

class DefaultStyleSettings

Methods

MethodDescription
DefaultStyleSettings(DefaultStyleSettings_Impl* impl)Constructs from an implementation object.
DefaultStyleSettings(const DefaultStyleSettings& src)Copy constructor.
GetBuiltInPreference()Indicates whether property for number format is preferrable when the style defines both built-in number and custom pattern. Default value is false, that means by default custom pattern will be used to format values as long as it is not empty for one style.
GetFontName()Gets/Sets the default font name for the workbook.
GetFontSize()Gets/Sets the default standard font size for the workbook.
GetHorizontalAlignment()Gets/Sets the default value for horizontal alignment.
GetVerticalAlignment()Gets/Sets the default value for vertical alignment.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const DefaultStyleSettings& src)operator=
SetBuiltInPreference(bool value)Indicates whether property for number format is preferrable when the style defines both built-in number and custom pattern. Default value is false, that means by default custom pattern will be used to format values as long as it is not empty for one style.
SetFontName(const U16String& value)Gets/Sets the default font name for the workbook.
SetFontName(const char16_t* value)Gets/Sets the default font name for the workbook.
SetFontSize(double value)Gets/Sets the default standard font size for the workbook.
SetHorizontalAlignment(TextAlignmentType value)Gets/Sets the default value for horizontal alignment.
SetVerticalAlignment(TextAlignmentType value)Gets/Sets the default value for vertical alignment.
~DefaultStyleSettings()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also