Windows Dev Center

ITextFont::SetAnimation method

Sets the animation type.

Syntax


HRESULT SetAnimation(
  [inlong Value
);

Parameters

Value [in]

Type: long

The animation type. It can be one of the following values.

Animation typeValue
tomNoAnimation0
tomLasVegasLights1
tomBlinkingBackground2
tomSparkleText3
tomMarchingBlackAnts4
tomMarchingRedAnts5
tomShimmer6
tomWipeDown7
tomWipeRight8

 

Return value

Type: HRESULT

If the method succeeds, it returns S_OK. If the method fails, it returns the following COM error code. For more information about COM error codes, see Error Handling in COM.

Return codeDescription
E_INVALIDARG

Invalid argument.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

Reference
ITextFont
GetAnimation
Conceptual
Text Object Model

 

 

Community Additions

ADD
Show:
© 2015 Microsoft