Remarks
Obtains the current length of the waveform scroller's view in terms of displayed milliseconds. The view length can be modified through the WaveformScroller.SetViewLength method.
For further details about methods of the Waveform scroller refer to the WaveformScroller object.
For a tutorial about the use of Waveform scrollers refer to the How to scroll the sound's waveform during playback tutorial.
Syntax
[Visual Basic]
Public Function GetViewLength (
hWndWaveformScroller as IntPtr,
ByRef nLengthInMs as Int32
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes GetViewLength (
IntPtr hWndWaveformScroller,
ref Int32 nLengthInMs
);
|
|
[C++]
public: enumErrorCodes GetViewLength (
IntPtr hWndWaveformScroller,
Int32 __gc *nLengthInMs
);
|
|
Parameter
|
Description
|
|
|
hWndWaveformScroller
|
Handle of the control returned by a previous call to the WaveformScroller.Create method
|
nLengthInMs
|
Reference that, on return from the method call, will contain the length of the view expressed in milliseconds.
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
enumErrorCodes.NOERROR (0)
|
The method call was successful.
|
|