Skip to main content
StyleParamsEnum enumeration constants are used to denote different parameters of a font style. They are used as a mask in some methods of the Paragraph object. The mask is an OR combination of these constants and define what properties of the CharParams object should be taken into account in these methods. The constants are also used as a mask in the IFontStyle::OverriddenStyleParams property.
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;

Elements

NameDescription
SF\_BackgroundColorRefers to the IParagraphParams::BackgroundColor property.
SF\_BaseLineRiseRefers to the ICharParams::BaseLine or IFontStyle::BaseLine property.
SF\_BoldRefers to the ICharParams::IsBold or IFontStyle::IsBold property.
SF\_ColorRefers to the ICharParams::Color or IFontStyle::Color property.
SF\_FontNameRefers to the ICharParams::FontName or IFontStyle::FontName property.
SF\_FontSizeRefers to the ICharParams::FontSize or IFontStyle::FontSize property.
SF\_ItalicRefers to the ICharParams::IsItalic or IFontStyle::IsItalic property.
SF\_ScalingRefers to the ICharParams::HorizontalScale or IFontStyle::HorizontalScale property.
SF\_SmallCapsRefers to the ICharParams::IsSmallCaps or IFontStyle::IsSmallCaps property.
SF\_SpacingRefers to the ICharParams::Spacing or IFontStyle::Spacing property.
SF\_StrikeoutRefers to the ICharParams::IsStrikeout or IFontStyle::IsStrikeout property.
SF\_UnderlinedRefers to the ICharParams::IsUnderlined or IFontStyle::IsUnderlined property.

Used in

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