PowerPoint.FontProperties interface
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the font attributes, such as font name, size, and color.
Remarks
Properties
all |
Represents whether the font uses all caps, where lowercase letters are shown as capital letters. |
bold | Represents the bold status of font. |
color | Represents the HTML color in the hexadecimal format (e.g., "#FF0000" represents red) or as a named HTML color value (e.g., "red"). |
double |
Represents the double-strikethrough status of the font. |
italic | Represents the italic status of font. |
name | Represents the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it's the Latin font name. |
size | Represents the font size in points (e.g., 11). |
small |
Represents whether the text uses small caps, where lowercase letters are shown as small capital letters. |
strikethrough | Represents the strikethrough status of the font. |
subscript | Represents the subscript status of the font. |
superscript | Represents the superscript status of the font. |
underline | Type of underline applied to the font. See PowerPoint.ShapeFontUnderlineStyle for details. |
Property Details
allCaps
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents whether the font uses all caps, where lowercase letters are shown as capital letters.
allCaps?: boolean | undefined;
Property Value
boolean | undefined
Remarks
bold
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the bold status of font.
bold?: boolean | undefined;
Property Value
boolean | undefined
Remarks
color
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the HTML color in the hexadecimal format (e.g., "#FF0000" represents red) or as a named HTML color value (e.g., "red").
color?: string | undefined;
Property Value
string | undefined
Remarks
doubleStrikethrough
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the double-strikethrough status of the font.
doubleStrikethrough?: boolean | undefined;
Property Value
boolean | undefined
Remarks
italic
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the italic status of font.
italic?: boolean | undefined;
Property Value
boolean | undefined
Remarks
name
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it's the Latin font name.
name?: string | undefined;
Property Value
string | undefined
Remarks
size
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the font size in points (e.g., 11).
size?: number | undefined;
Property Value
number | undefined
Remarks
smallCaps
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents whether the text uses small caps, where lowercase letters are shown as small capital letters.
smallCaps?: boolean | undefined;
Property Value
boolean | undefined
Remarks
strikethrough
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the strikethrough status of the font.
strikethrough?: boolean | undefined;
Property Value
boolean | undefined
Remarks
subscript
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the subscript status of the font.
subscript?: boolean | undefined;
Property Value
boolean | undefined
Remarks
superscript
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Represents the superscript status of the font.
superscript?: boolean | undefined;
Property Value
boolean | undefined
Remarks
underline
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Type of underline applied to the font. See PowerPoint.ShapeFontUnderlineStyle for details.
underline?: PowerPoint.ShapeFontUnderlineStyle | "None" | "Single" | "Double" | "Heavy" | "Dotted" | "DottedHeavy" | "Dash" | "DashHeavy" | "DashLong" | "DashLongHeavy" | "DotDash" | "DotDashHeavy" | "DotDotDash" | "DotDotDashHeavy" | "Wavy" | "WavyHeavy" | "WavyDouble" | undefined;
Property Value
PowerPoint.ShapeFontUnderlineStyle | "None" | "Single" | "Double" | "Heavy" | "Dotted" | "DottedHeavy" | "Dash" | "DashHeavy" | "DashLong" | "DashLongHeavy" | "DotDash" | "DotDashHeavy" | "DotDotDash" | "DotDotDashHeavy" | "Wavy" | "WavyHeavy" | "WavyDouble" | undefined
Remarks
Office Add-ins