←选择平台

AutoResetOptions财产

总结

确定哪些新形象时重置设置显示属性查看器(单项模式)。

语法
c#
VB
c++
公共虚拟ImageViewerAutoResetOptionsAutoResetOptions {得到;;}
公共重写的财产AutoResetOptions ()作为ImageViewerAutoResetOptions得到
公共:虚拟财产ImageViewerAutoResetOptions^ AutoResetOptions{ImageViewerAutoResetOptions^ get ()无效集(ImageViewerAutoResetOptions^价值)}

属性值

价值决定了哪些新形象时重置设置显示属性查看器(单项模式)。默认值是ImageViewerAutoResetOptions.All

讲话

使用这个属性来控制的显示控件的属性重置回其默认值设置为当一个新的形象ImageUrl,图像SvgDocument或者当用户更改属性图象尺寸直接。

查看器将调用重置执行的重置价值。

例子

运行演示并单击按钮。图像将被放大(其比例因子和滚动抵消将改变)在一定的价值。然后查看器将使用AutoResetOptions时不会改变这些值设置一个新形象。

开始imageview例子中,删除所有函数内的代码例子(搜索“/ / TODO:添加示例代码”评论)和插入以下代码:

c#
VB
使用Leadtools;使用Leadtools.Controls;使用Leadtools.Codecs;使用Leadtools.Drawing;使用Leadtools.ImageProcessing;使用Leadtools.ImageProcessing.Color;公共无效ImageViewerAutoResetOptions_Example (RasterImage图片){ImageViewerAutoResetOptions选项= _imageViewer.AutoResetOptions;/ /保存_imageViewer。AutoResetOptions = ImageViewerAutoResetOptions.None;_imageViewer。形象=形象;_imageViewer。AutoResetOptions =选项;}
进口Leadtools进口Leadtools.Controls进口Leadtools.Codecs进口Leadtools.Drawing进口Leadtools.ImageProcessing进口Leadtools.ImageProcessing.Color进口LeadtoolsControlsExamples.LeadtoolsExamples.Common公共ImageViewerAutoResetOptions_Example (按值传递图像作为RasterImage)昏暗的选项作为ImageViewerAutoResetOptions = _imageViewer.AutoResetOptions“拯救_imageViewer。AutoResetOptions = ImageViewerAutoResetOptions.None_imageViewer。形象=形象_imageViewer。AutoResetOptions =选项结束
需求
目标平台
Leadtools.Controls作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。