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
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
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
FontSize
Gets/Sets the default standard font size for the workbook.
public double FontSize { get; set; }
Property Value
HorizontalAlignment
Gets/Sets the default value for horizontal alignment
public TextAlignmentType HorizontalAlignment { get; set; }
Property Value
VerticalAlignment
Gets/Sets the default value for vertical alignment
public TextAlignmentType VerticalAlignment { get; set; }