Copyright © 2008-2018 MultiMedia Soft

WaveformAnalyzer.GraphicItemHorzPositionSet method

Previous pageReturn to chapter overviewNext page



Sets the new horizontal position of the given graphic item. The current horizontal position can be obtained through the WaveformAnalyzer.GraphicItemHorzPositionGet method.


For details about graphic items management on the waveform analyzer refer to the How to add graphic items to the Waveform analyzer section.

For details about the use of the Waveform Analyzer refer to the How to use the Waveform Analyzer section.

For further details about methods of the Waveform Analyzer refer to the WaveformAnalyzer object section.





[Visual Basic]

control.WaveformAnalyzer.GraphicItemHorzPositionSet (

nUniqueId as Integer,

nStartPosInMs as Long,

nEndPosInMs as Long

) as enumErrorCodes



short control.WaveformAnalyzer.GraphicItemHorzPositionSet (

short nUniqueId,

long nStartPosInMs,

long nEndPosInMs









Unique identification number assigned to the graphic item.

The unique identification number of a graphic item is generated using one of the following methods:


The new start position of the item expressed in milliseconds.

The call to this method fails if the specified position is less than 0 or higher than the total duration of the sound currently loaded into the editor


The new end position of the item expressed in milliseconds (parameter ignored for vertical lines)


Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.