Class DefaultStyleSettings

Class DefaultStyleSettings

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

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

public class DefaultStyleSettings

Inheritance

objectDefaultStyleSettings

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

BuiltInPreference

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.

public bool BuiltInPreference { get; set; }

Property Value

bool

Remarks

When loading workbook from existing template file, maybe both built-in number and custom pattern are defined for one style. This property determine whether we should use the built-in number or the custom pattern when formatting values with the style.

FontName

Gets/Sets the default font name for the workbook

public string FontName { get; set; }

Property Value

string

FontSize

Gets/Sets the default standard font size for the workbook.

public double FontSize { get; set; }

Property Value

double

HorizontalAlignment

Gets/Sets the default value for horizontal alignment

public TextAlignmentType HorizontalAlignment { get; set; }

Property Value

TextAlignmentType

VerticalAlignment

Gets/Sets the default value for vertical alignment

public TextAlignmentType VerticalAlignment { get; set; }

Property Value

TextAlignmentType