Struct Stylings
- Namespace
- FileFormat.Slides.Common
- Assembly
- FileFormat.Slides.Common.dll
Represents the stylings applied to text elements.
public struct Stylings
- Inherited Members
Constructors
Stylings(int, TextAlignment, string, string)
Initializes a new instance of the Stylings struct with default values.
public Stylings(int fontSize = 12, TextAlignment alignment = TextAlignment.Left, string fontFamily = "Calibri", string textColor = "#000000")
Parameters
fontSizeintThe font size (default is 12).
alignmentTextAlignmentThe text alignment (default is TextAlignment.Left).
fontFamilystringThe font family (default is "Calibri").
textColorstringThe text color in hexadecimal format (default is "#000000").
Properties
Alignment
Gets or sets the text alignment.
public TextAlignment Alignment { get; set; }
Property Value
FontFamily
Gets or sets the font family.
public string FontFamily { get; set; }
Property Value
FontSize
Gets or sets the font size.
public int FontSize { get; set; }
Property Value
TextColor
Gets or sets the text color in hexadecimal format.
public string TextColor { get; set; }