Copyright © 2013-2017 MultiMedia Soft

GraphicItemHorzPositionSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the new horizontal position of the given graphic item. The current horizontal position can be obtained through the 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.

 

 

Syntax

 

[Visual Basic]

Public Function GraphicItemHorzPositionSet (

nUniqueId as Int16,

nStartPosInMs as Int32,

nEndPosInMs as Int32

) as enumWanErrorCodes


 

[C#]

public enumWanErrorCodes GraphicItemHorzPositionSet (

Int16 nUniqueId,

Int32 nStartPosInMs,

Int32 nEndPosInMs

);


 

[C++]

public: enumWanErrorCodes GraphicItemHorzPositionSet (

Int16 nUniqueId,

Int32 nStartPosInMs,

Int32 nEndPosInMs

);


 

 

Parameter

Description

 

 

nUniqueId

Unique identification number assigned to the graphic item.

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

GraphicItemHorizontalLineAdd for horizontal lines
GraphicItemVerticalLineAdd for vertical lines
GraphicItemWaveRangeAdd for wave ranges

nStartPosInMs

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

nEndPosInMs

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

 

Return value

 

Value

Meaning

 

 

Negative value

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

enumWanErrorCodes.ERR_WAN_NOERROR (0)

The method call was successful.