PowerPointTextStyle
OfficeIMO.PowerPoint
Defines text formatting that can be applied to runs or paragraphs.
Inheritance
- ValueType
- PowerPointTextStyle
Usage
Explore 16 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 14
- Method PowerPointTextStyle.WithBackgroundColor
- Method PowerPointTextStyle.WithBold
- Method PowerPointTextStyle.WithColor
- Method PowerPointTextStyle.WithFontFamily
- Method PowerPointTextStyle.WithFontSize
- Method PowerPointTextStyle.WithItalic
- Method PowerPointTextStyle.WithStrikethrough
- Method PowerPointTextStyle.WithUnderline
- Method PowerPointTextStyle.WithUnderlineStyle
- Property PowerPointTextStyle.Body
- Property PowerPointTextStyle.Caption
- Property PowerPointTextStyle.Emphasis
- Property PowerPointTextStyle.Subtitle
- Property PowerPointTextStyle.Title
Accepted by parameters 2
Constructors
public PowerPointTextStyle(OfficeLength? fontSize = null, string? fontFamily = null, OfficeColor? color = null, bool? bold = null, bool? italic = null, bool? underline = null, OfficeColor? backgroundColor = null, bool? strikethrough = null) #Creates a new text style instance.
Parameters
- fontSize OfficeIMO.OfficeLength? = null
- fontFamily string? = null
- color OfficeIMO.OfficeColor? = null
- bold bool? = null
- italic bool? = null
- underline bool? = null
- backgroundColor OfficeIMO.OfficeColor? = null
- strikethrough bool? = null
Methods
public PowerPointTextStyle WithBackgroundColor(OfficeColor? backgroundColor) #Returns a copy with a new run background (highlight) color.
Parameters
- backgroundColor OfficeIMO.OfficeColor?
Returns
PowerPointTextStylepublic PowerPointTextStyle WithBold(bool? bold) #Returns a copy with bold formatting updated.
Parameters
- bold bool?
Returns
PowerPointTextStylepublic PowerPointTextStyle WithColor(OfficeColor? color) #Returns a copy with a new color.
Parameters
- color OfficeIMO.OfficeColor?
Returns
PowerPointTextStylepublic PowerPointTextStyle WithFontFamily(string? fontFamily) #Returns a copy with a new font family.
Parameters
- fontFamily string?
Returns
PowerPointTextStylepublic PowerPointTextStyle WithFontSize(OfficeLength? fontSize) #Returns a copy with a new font size.
Parameters
- fontSize OfficeIMO.OfficeLength?
Returns
PowerPointTextStylepublic PowerPointTextStyle WithItalic(bool? italic) #Returns a copy with italic formatting updated.
Parameters
- italic bool?
Returns
PowerPointTextStylepublic PowerPointTextStyle WithStrikethrough(bool? strikethrough) #Returns a copy with strikethrough formatting updated.
Parameters
- strikethrough bool?
Returns
PowerPointTextStylepublic PowerPointTextStyle WithUnderline(bool? underline) #Returns a copy with underline formatting updated.
Parameters
- underline bool?
Returns
PowerPointTextStylepublic PowerPointTextStyle WithUnderlineStyle(PowerPointUnderlineStyle? underlineStyle) #Returns a copy with a native underline variant; null clears the underline override.
Parameters
- underlineStyle OfficeIMO.PowerPoint.PowerPointUnderlineStyle?
Returns
PowerPointTextStyleInherited Methods
Properties
public OfficeLength? FontSize { get; } #Physical font size, stored in DrawingML hundredths of a point.
public OfficeColor? Color { get; } #Text color; alpha below 255 is written as native DrawingML opacity.
public PowerPointUnderlineStyle? UnderlineStyle { get; } #Precise native underline variant; null leaves the variant unspecified.
public OfficeColor? BackgroundColor { get; } #Run background (DrawingML highlight) color; alpha below 255 is written as native opacity.
public static PowerPointTextStyle Title { get; } #A preset for typical slide titles.
public static PowerPointTextStyle Subtitle { get; } #A preset for subtitles.
public static PowerPointTextStyle Caption { get; } #A preset for captions or footnotes.
public static PowerPointTextStyle Emphasis { get; } #A preset that enables bold emphasis.