PLAYLIST.setColumnResizeMode

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The setColumnResizeMode method specifies how the indexed column sizes itself.

        elementID.setColumnResizeMode(column, mode)

Parameters

column

Number (long) indicating the index of the column to be changed.

mode

String indicating the sizing mode. Contains one of the following values.

Value Description
AutosizeHeader The column resizes to accommodate all data in both the column and the header.
AutosizeData The column resizes to accommodate all data in the column only.
Fixed The column is a fixed size.
Stretches The column resizes to use the remaining space in the PLAYLIST element after all other columns are resized.

Return Value

This method does not return a value.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

PLAYLIST Element