Duration Method

This member of Class WaveLinkTone is supported on Windows Mobile, Windows CE, Palm, and DOS.

The Duration Method sets or returns the duration of the specified note.

Syntax

public int Duration(int tnIndex)
public void Duration(int tnIndex, int newDuration)
throws IllegalArgumentException

Parameters

tnIndex

The zero-based index value of the note in the current configuration

newDuration

The duration, in milliseconds, of the note

Returns

The duration of the note in milliseconds

Throws

IllegalArgumentException

Remarks

To alter the duration for a note stored within a tone file on a device, first use the GetToneFile Method to set the tone file as the current tone object.

The first tone in the list is indexed as zero. For example, to return the duration for the third note in the current WaveLinkTone Object, you pass a 2.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal