Windows Media Player SDK banner art
PreviousNext

PLAYLIST Element

The PLAYLIST element provides a way to organize media items in a list for easy manipulation using the attributes and methods shown here.

The PLAYLIST element supports the following attributes.

Attribute Description
allowColumnSorting Specifies or retrieves a value indicating whether sorting on column headers is allowed.
allowItemEditing Specifies or retrieves a value indicating whether items in a playlist support in-place editing.
backgroundColor Specifies or retrieves the background color.
backgroundImage Specifies or retrieves the background image.
checkboxesVisible Specifies or retrieves a value indicating whether checkboxes are visible.
columnCount Retrieves the number of columns shown.
columnOrder Specifies or retrieves the order of the playlist columns.
columns Defines the columns that appear in the Playlist control.
columnsVisible Specifies or retrieves a value indicating whether columns are shown.
copying Retrieves a value indicating whether the Playlist control is in the act of copying.
disabledItemColor Specifies or retrieves the color of a disabled CD track or of online content when offline.
dropDownList Specifies or retrieves a value indicating which elements show up in the drop-down list for a given instance of the Playlist control.
dropDownToolTip Specifies or retrieves the ToolTip shown when the user hovers over the Playlist control drop-down menu.
dropDownVisible Specifies or retrieves a value indicating whether the Playlist drop-down selector is visible.
foregroundColor Specifies or retrieves the foreground color.
itemPlayingBackgroundColor Specifies or retrieves the background color of the currently playing Playlist item.
itemPlayingColor Specifies or retrieves the highlight color that indicates the currently playing item in the playlist.
playlist Specifies or retrieves the Playlist object that the Playlist control provides an interface to.
playlistItemsVisible Specifies or retrieves a value indicating whether items in the playlist are visible.

The PLAYLIST element supports the following methods.

Method Description
abortCopy Cancels a copy operation.
addSelectedToPlaylist Adds the selected item to the playlist.
copy Begins a copy operation from the CD.
deleteSelected Deletes the selected item from the playlist.
deleteSelectedFromLibrary Deletes the selected item from the playlist and from the media library.
getNextCheckedItem Retrieves the index of the next checked item in the playlist following the specified index.
getNextSelectedItem Retrieves the index of the next selected item in the playlist following the specified index.
moveSelectedDown Moves the selected item down one position in the list.
moveSelectedUp Moves the selected item up one position in the list.
setCheckedState Specifies that the indexed item in the playlist is checked.
setColumnResizeMode Specifies how the indexed column sizes itself.
setColumnWidth Specifies the column width and changes the resize mode of the column to “wmpcrmFixed”.
setSelectedState Specifies that the indexed item in the playlist is selected.
sortColumn Sorts the data in the specified column.

The ambient attributes and ambient events are also supported by this element, except where noted.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.