←选择平台

EnableById方法

总结

启用交互模式,在集合中给出其ID。

语法
c#
VB
c++
公共无效EnableById (intid
公共EnableById (按值传递id作为整数
公共无效EnableById (intid

参数

id

要启用的交互模式ID。如果没有找到ID,则禁用集合中的所有项。

讲话

此方法将遍历集合和集合中的所有项IsEnabled所有的项目,除了当Id等于id

例子
c#
VB
使用Leadtools;使用Leadtools.Controls;使用Leadtools.Codecs;使用Leadtools.Drawing;使用Leadtools.ImageProcessing;使用Leadtools.ImageProcessing.Color;_imageViewer.InteractiveModes.BeginUpdate ();_imageViewer.InteractiveModes.Add (ImageViewerPanZoomInteractiveMode {IsEnabled =真正的});_imageViewer.InteractiveModes.EnableById (ImageViewerInteractiveMode.PanZoomModeId);_imageViewer.InteractiveModes.EndUpdate ();
进口Leadtools进口Leadtools。控制进口Leadtools。编解码器进口Leadtools。画进口Leadtools。ImageProcessing进口Leadtools.ImageProcessing.Color_imageViewer.InteractiveModes.BeginUpdate ()昏暗的模式作为ImageViewerPanZoomInteractiveMode模式。IsEnabled =真正的_imageViewer.InteractiveModes.Add(模式)_imageViewer.InteractiveModes.EnableById (ImageViewerInteractiveMode.PanZoomModeId)_imageViewer.InteractiveModes.EndUpdate ()
需求
目标平台
Leadtools。控制作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权公告
©1991 - 2021领德科技有限公司版权所有。