IMFTimedTextFormattedText::GetSubformatting method (mfmediaengine.h)
Gets a subformat in the formatted timed-text object.
Syntax
HRESULT GetSubformatting(
[in] DWORD index,
[out] DWORD *firstChar,
[out] DWORD *charLength,
[out] IMFTimedTextStyle **style
);
Parameters
[in] index
Type: DWORD
The index of the subformat in the formatted timed-text object.
[out] firstChar
Type: DWORD*
A pointer to a variable that receives the first character of the subformat.
[out] charLength
Type: DWORD*
A pointer to a variable that receives the length, in characters, of the subformat.
[out] style
Type: IMFTimedTextStyle**
A pointer to a memory block that receives a pointer to the IMFTimedTextStyle interface for the subformat's timed-text style. This parameter can be NULL.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | mfmediaengine.h |