跳轉到主要內容
StyleParamsEnum 列舉常數用於表示字型樣式的不同參數。它們在 Paragraph 物件的某些方法中作為遮罩使用。此遮罩是這些常數的 OR 組合,用來定義在這些方法中應納入考量的 CharParams 物件屬性。這些常數也會在 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;

元素

名稱說明
SF_BackgroundColor對應於 IParagraphParams::BackgroundColor 屬性。
SF_BaseLineRise對應於 ICharParams::BaseLineIFontStyle::BaseLine 屬性。
SF_Bold對應於 ICharParams::IsBoldIFontStyle::IsBold 屬性。
SF_Color對應於 ICharParams::ColorIFontStyle::Color 屬性。
SF_FontName對應於 ICharParams::FontNameIFontStyle::FontName 屬性。
SF_FontSize對應於 ICharParams::FontSizeIFontStyle::FontSize 屬性。
SF_Italic對應於 ICharParams::IsItalicIFontStyle::IsItalic 屬性。
SF_Scaling對應於 ICharParams::HorizontalScaleIFontStyle::HorizontalScale 屬性。
SF_SmallCaps對應於 ICharParams::IsSmallCapsIFontStyle::IsSmallCaps 屬性。
SF_Spacing對應於 ICharParams::SpacingIFontStyle::Spacing 屬性。
SF_Strikeout對應於 ICharParams::IsStrikeoutIFontStyle::IsStrikeout 屬性。
SF_Underlined對應於 ICharParams::IsUnderlinedIFontStyle::IsUnderlined 屬性。

用於

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