IVDctText::FX

HRESULT FX(DWORD dwFX);

Performs an action on the text defined by dwFX.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
E_OUTOFMEMORY

dwFX

[in] Effect to perform on the currently selected text. If a "word" is partially out of the selection it is affected. If the selection is 0 characters (an insertion point), then a word immediately to the left of the insertion point will be affected. If there is no word immediately to the left, then the word immediately to the right. It can be one of the following:

Value

Description

VDCTFX_CAPFIRST

Capitalizes the first letter of the words in the selection.

VDCTFX_LOWERFIRST

Lower cases the first letter of the words in the selection if only the first letter of the word is capitalized.

VDCTFX_TOGGLEFIRST

If the first letter is lower case then the first letter is capitalized and all other letters are lower cased. If the first letter is upper case then the whole word is lower cased.

VDCTFX_CAPALL

Capitalizes all of the letters in the words.

VDCTFX_LOWERALL

Lower-cases all of the letters in the words.