OfficeThemeTextStyle
OfficeIMO
Text colours, line spacing and heading treatment shared by document formats.
Inheritance
- object
- OfficeThemeTextStyle
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property OfficeTheme.TextStyle
- Method OfficeThemeTextStyle.With
Accepted by parameters 2
- Constructor OfficeTheme.OfficeTheme
- Method OfficeTheme.WithTextStyle
Constructors
public OfficeThemeTextStyle(double lineSpacing, OfficeColor titleColor, OfficeColor subtitleColor, OfficeColor headingColor, OfficeColor linkColor, bool headingBold, OfficeThemeRule titleRule, OfficeThemeParagraphSpacing titleSpacing, OfficeThemeParagraphSpacing heading1Spacing, OfficeThemeParagraphSpacing heading2Spacing, OfficeThemeParagraphSpacing heading3Spacing) #Creates immutable text colours, line spacing and heading treatment.
Parameters
- lineSpacing double
- titleColor OfficeIMO.OfficeColor
- subtitleColor OfficeIMO.OfficeColor
- headingColor OfficeIMO.OfficeColor
- linkColor OfficeIMO.OfficeColor
- headingBold bool
- titleRule OfficeIMO.OfficeThemeRule
- titleSpacing OfficeIMO.OfficeThemeParagraphSpacing
- heading1Spacing OfficeIMO.OfficeThemeParagraphSpacing
- heading2Spacing OfficeIMO.OfficeThemeParagraphSpacing
- heading3Spacing OfficeIMO.OfficeThemeParagraphSpacing
Methods
public OfficeThemeParagraphSpacing GetHeadingSpacing(int level) #Gets the spacing for a heading level: 0 is the title, 1 to 6 are heading levels; levels 4 to 6 share level 3 spacing.
Parameters
- level int
Returns
OfficeThemeParagraphSpacingpublic OfficeThemeTextStyle With(double? lineSpacing = null, OfficeColor? titleColor = null, OfficeColor? subtitleColor = null, OfficeColor? headingColor = null, OfficeColor? linkColor = null, bool? headingBold = null, OfficeThemeRule? titleRule = null, OfficeThemeParagraphSpacing? titleSpacing = null, OfficeThemeParagraphSpacing? heading1Spacing = null, OfficeThemeParagraphSpacing? heading2Spacing = null, OfficeThemeParagraphSpacing? heading3Spacing = null) #Returns a copy with the supplied replacements; omitted values are retained.
Parameters
- lineSpacing double? = null
- titleColor OfficeIMO.OfficeColor? = null
- subtitleColor OfficeIMO.OfficeColor? = null
- headingColor OfficeIMO.OfficeColor? = null
- linkColor OfficeIMO.OfficeColor? = null
- headingBold bool? = null
- titleRule OfficeIMO.OfficeThemeRule? = null
- titleSpacing OfficeIMO.OfficeThemeParagraphSpacing? = null
- heading1Spacing OfficeIMO.OfficeThemeParagraphSpacing? = null
- heading2Spacing OfficeIMO.OfficeThemeParagraphSpacing? = null
- heading3Spacing OfficeIMO.OfficeThemeParagraphSpacing? = null
Returns
OfficeThemeTextStyleInherited Methods
Properties
public double LineSpacing { get; } #Gets the line spacing multiple for body text (1.0 is single spacing).
public OfficeColor HeadingColor { get; } #Gets the colour of heading levels 1 to 6.
public OfficeThemeRule TitleRule { get; } #Gets the rule drawn under the title, or OfficeThemeRule.None.
public OfficeThemeParagraphSpacing TitleSpacing { get; } #Gets the space before and after the title.
public OfficeThemeParagraphSpacing Heading1Spacing { get; } #Gets the space before and after level 1 headings.
public OfficeThemeParagraphSpacing Heading2Spacing { get; } #Gets the space before and after level 2 headings.
public OfficeThemeParagraphSpacing Heading3Spacing { get; } #Gets the space before and after level 3 to 6 headings.