您好:
我现在有这么一个问题,我在一个imageviewer中添加了
- for (int i = 0; i < _ocrDocument.Pages.Count; i++)
- {
- IOcrPage ocrPage = _ocrDocument.Pages[i];
- RasterImage image = ocrPage.CreateThumbnail(thumbSize.Width, thumbSize.Height);
- ImageViewerItem item = new ImageViewerItem();
- item.Image = image;
- item.Text = string.Format("第{0}页", i + 1);
- item.PageNumber = 1;
- imageViewer1.Items.Insert(i, item);
- //index++;
- }
复制代码 一批缩略图,imageviewer中添加了imageViewer1.InteractiveModes.Add(new Leadtools.Controls.ImageViewerSelectItemsInteractiveMode() { SelectionMode = Leadtools.Controls.ImageViewerSelectionMode.Single });这么一行代码后可以实现单选缩略图中的某一个图,现在我想实现切换成多选缩略图应该怎么实现,是将imageViewer1.InteractiveModes.Add(new Leadtools.Controls.ImageViewerSelectItemsInteractiveMode() { SelectionMode = Leadtools.Controls.ImageViewerSelectionMode.Single });中的Single改为Multi吗,我改了后没有反应呢
|
|