←选择平台

FindById方法

总结

集合中找到一个交互模式由于其id。

语法
c#
VB
c++
公共ImageViewerInteractiveModeFindById (intid)
公共函数FindById (按值传递id作为整数)作为ImageViewerInteractiveMode
公共:ImageViewerInteractiveMode^ FindById (intid)

参数

id

ID找到

返回值

如果有任何发现的交互模式否则。

讲话

该方法将遍历所有集合中的项目和返回的模式Id等于id。如果没有找到这样的模式就会回来

例子
c#
VB
使用Leadtools;使用Leadtools.Controls;使用Leadtools.Codecs;使用Leadtools.Drawing;使用Leadtools.ImageProcessing;使用Leadtools.ImageProcessing.Color;ImageViewerPanZoomInteractiveMode panZoom = _imageViewer.InteractiveModes.FindById (ImageViewerInteractiveMode.PanZoomModeId)作为ImageViewerPanZoomInteractiveMode;ControlInertiaScrollOptions inertiaOptions = panZoom.InertiaScrollOptions;inertiaOptions。IsEnabled =真正的;panZoom。InertiaScrollOptions = inertiaOptions;
进口Leadtools进口Leadtools.Controls进口Leadtools.Codecs进口Leadtools.Drawing进口Leadtools.ImageProcessing进口Leadtools.ImageProcessing.Color昏暗的panZoom作为ImageViewerPanZoomInteractiveMode = TryCast (_imageViewer.InteractiveModes.FindById (ImageViewerInteractiveMode.PanZoomModeId),ImageViewerPanZoomInteractiveMode)昏暗的inertiaOptions作为ControlInertiaScrollOptions = panZoom.InertiaScrollOptionsinertiaOptions。IsEnabled =真正的panZoom。InertiaScrollOptions = inertiaOptions
需求
目标平台
Leadtools.Controls作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。