Copyright © 2013-2015 MultiMedia Soft

MidiDjConsole.ProfileTypedItemCountGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Enumerates items of a specific type contained inside the profile of the DJ Console. After completing the enumeration, the name of each item of the enumerated type can be retrieved through the MidiDjConsole.ProfileTypedItemNameGet method.

 

For further details about interfacing with MIDI DJ Consoles see the MidiDjConsole object section and the How to manage MIDI DJ consoles tutorial.

 

 

Syntax

 

[Visual Basic]

MidiDjConsole.ProfileTypedItemCountGet (

nItemType as enumDjConsoleItemType,

ByRef nCount as Int32

) as enumDjcErrorCodes


 

[C#]

public enumDjcErrorCodes MidiDjConsole.ProfileTypedItemCountGet (

enumDjConsoleItemType nItemType,

ref Int32 nCount

);


 

[C++]

public: enumDjcErrorCodes MidiDjConsole.ProfileTypedItemCountGet (

enumDjConsoleItemType nItemType,

Int32 __gc *nCount

);


 

Parameter

Description

 

 

nItemType

Specifies the type of item whose number must be obtained.

Supported values are the following:

Mnemonic constant

Value

Meaning

DJC_ITEM_TYPE_ALL

-1

Include all types of items inside the enumeration.

This option has the same effect of a call to the MidiDjConsole.ProfileItemCountGet method.

DJC_ITEM_TYPE_BUTTON

0

Only simple push button controls are enumerated.

DJC_ITEM_TYPE_BUTTON_WITH_LED

1

Only push button controls with an embedded led are enumerated.

DJC_ITEM_TYPE_RANGE

2

Only range controls are enumerated.

DJC_ITEM_TYPE_LED

3

Only led and VFD (Vacuum Fluorescent Display) controls are enumerated.

DJC_ITEM_TYPE_DISPLAY

4

Only VFD (Vacuum Fluorescent Display) elements not driven as a simple led are enumerated.

nCount

Reference that, on return from the method call, will contain the number of items of the given type

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumDjcErrorCodes.ERR_DJC_NOERROR (0)

The method call was successful.