Copyright © 2013-2017 MultiMedia Soft

ZoomToSelection method

Previous pageReturn to chapter overviewNext page

Remarks

 

If a waveform's selection is available, zooms its contents.

 

After a call to this method the control will fire the WaveAnalyzerDisplayRangeChange event.

 

 

Syntax

 

[Visual Basic]

control.ZoomToSelection (

bRemoveSelectionAfterZoom as enumBoolean

) as enumWanErrorCodes


 

[C++]

short control.ZoomToSelection (

short bRemoveSelectionAfterZoom

);


 

Parameter

Description

 

 

bRemoveSelectionAfterZoom

Tells to remove the actual selection, if any, after the zoom operation.

Supported values are the following:

Value

Meaning

BOOL_FALSE

Leaves the current selection after zooming.

BOOL_TRUE

Removes the current selection after zooming.

 

 

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