Share via


ITextFont2::SetEffects メソッド (tom.h)

文字書式の効果を設定します。

構文

HRESULT SetEffects(
  [in] long Value,
  [in] long Mask
);

パラメーター

[in] Value

型: long

次の文字書式値の組み合わせ。

tomAllCaps

tomBold

tomDisabled

tomEmboss

tomHidden

tomImprint

tomInlineObjectStart

tomItalic

tomLinkProtected

tomMathZone

tomMathZoneDisplay

tomMathZoneNoBuildUp

tomMathZoneOrdinary

tomOutline

tomProtected

tomRevised

tomShadow

tomSmallCaps

tomStrikeout

tomUnderline

[in] Mask

型: long

目的のマスク。 Value フラグの組み合わせにすることができます。 対応するマスク フラグが設定された効果のみが変更されます。

戻り値

種類: HRESULT

メソッドが成功すると、 NOERROR が返されます。 そうでない場合は、HRESULT エラー コードを返します。

注釈

対応するマスク フラグが設定された効果のみが変更されます。

要件

要件
サポートされている最小のクライアント Windows 8 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2012 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー tom.h
[DLL] Msftedit.dll

こちらもご覧ください

ITextFont2

ITextFont2::GetEffects