Passer au contenu principal
Les constantes de l’énumération StyleParamsEnum servent à désigner différents paramètres d’un style de police. Elles sont utilisées comme masque dans certaines méthodes de l’objet Paragraph. Le masque est une combinaison de ces constantes avec l’opérateur OR et définit quelles propriétés de l’objet CharParams doivent être prises en compte dans ces méthodes. Les constantes sont également utilisées comme masque dans la propriété IFontStyle::OverriddenStyleParams.
typedef enum {
 SF_Bold = 1,
 SF_Italic = 2,
 SF_Underlined = 4,
 SF_Strikeout = 8,
 SF_SmallCaps = 16,
 SF_FontSize = 0x10000,
 SF_FontName = 0x20000,
 SF_Scaling = 0x40000,
 SF_Spacing = 0x80000,
 SF_Color = 0x100000,
 SF_BackgroundColor = 0x200000,
 SF_BaseLineRise = 0x400000
} StyleParamsEnum;

Éléments

NomDescription
SF_BackgroundColorCorrespond à la propriété IParagraphParams::BackgroundColor.
SF_BaseLineRiseCorrespond à la propriété ICharParams::BaseLine ou IFontStyle::BaseLine.
SF_BoldCorrespond à la propriété ICharParams::IsBold ou IFontStyle::IsBold.
SF_ColorCorrespond à la propriété ICharParams::Color ou IFontStyle::Color.
SF_FontNameCorrespond à la propriété ICharParams::FontName ou IFontStyle::FontName.
SF_FontSizeCorrespond à la propriété ICharParams::FontSize ou IFontStyle::FontSize.
SF_ItalicCorrespond à la propriété ICharParams::IsItalic ou IFontStyle::IsItalic.
SF_ScalingCorrespond à la propriété ICharParams::HorizontalScale ou IFontStyle::HorizontalScale.
SF_SmallCapsCorrespond à la propriété ICharParams::IsSmallCaps ou IFontStyle::IsSmallCaps.
SF_SpacingCorrespond à la propriété ICharParams::Spacing ou IFontStyle::Spacing.
SF_StrikeoutCorrespond à la propriété ICharParams::IsStrikeout ou IFontStyle::IsStrikeout.
SF_UnderlinedCorrespond à la propriété ICharParams::IsUnderlined ou IFontStyle::IsUnderlined.

Utilisé dans

IParagraph::SetCharParams IParagraph::NextGroup IFontStyle::OverriddenStyleParams