WaveformAnalyzer.GraphicItemHorizontalLineAdd method |
|
Remarks
Adds a new horizontal line that will be displayed over the waveform's graphics.
On the screenshot below you can see a set of horizontal lines displayed over the waveform, each with its own set of properties, positions and buddy text:
This line can be manually moved on the screen in one of the following ways:
During playback of the loaded sound, the WaveAnalyzerHorzLineReached event is generated when playback position reaches the start position of the horizontal line and the WaveAnalyzerHorzLineLeaved event is generated when playback position leaves the end position of the horizontal line.
This method fails if no sound is currently loaded into the editor. The horizontal line is automatically destroyed, as all of the other existing graphic items, when the loaded sound is discarded from memory through the RecordedSound.FreeMemory method.
A horizontal line can be removed through the WaveformAnalyzer.GraphicItemRemove method and hidden or shown through the WaveformAnalyzer.GraphicItemShow 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.
Syntax
Return value
|