Leadtools.Jpip.Client.WinForms Namespace > JpipRasterImageViewer Class : SetCodeStreamIndex Method |
public void SetCodeStreamIndex( int codeStreamIndex )
'Declaration Public Sub SetCodeStreamIndex( _ ByVal codeStreamIndex As Integer _ )
'Usage Dim instance As JpipRasterImageViewer Dim codeStreamIndex As Integer instance.SetCodeStreamIndex(codeStreamIndex)
public void SetCodeStreamIndex( int codeStreamIndex )
function Leadtools.Jpip.Client.WinForms.JpipRasterImageViewer.SetCodeStreamIndex( codeStreamIndex )
public: void SetCodeStreamIndex( int codeStreamIndex )
Use the CodeStreamCount property to find the number of available code-streams, the index should be less than or equal CodeStreamCount - 1 and greater than 0.
There is no guarantee that this method will succeed after it returns since the JpipRasterImageViewer perform this operation asynchronously However, the Leadtools.Jpip.Client.WinForms.JpipRasterImageViewer.CodeStreamRequest event will provide information for the status of the requested code-stream with information if the method has failed or succeeded.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2