←选择平台

ViewLayout财产

总结

使用的视图布局imageview

语法
c#
VB
c++
公共虚拟ImageViewerViewLayoutViewLayout {得到;}
公共重写的财产ViewLayout ()作为ImageViewerViewLayout得到
公共虚拟财产ImageViewerViewLayout^ ViewLayoutImageViewerViewLayout^ get ()无效集(ImageViewerViewLayout价值

属性值

this使用的视图布局imageview.的实例ImageViewerSingleViewLayout

讲话

有关更多信息,请参阅图像查看器布局

例子

属性中添加了一些项imageview然后允许你在不同的视图布局之间切换来查看差异。

运行演示。现在,当您单击Example按钮时。

imageview例如,删除示例函数内的所有代码(搜索“// TODO: add example code here”注释),并插入以下代码:

c#
VB
使用Leadtools;使用Leadtools.Controls;使用Leadtools.Codecs;使用Leadtools.Drawing;使用Leadtools.ImageProcessing;使用Leadtools.ImageProcessing.Color;公共无效ImageViewerViewLayout_Example ()ImageViewerViewLayout布局=ImageViewerHorizontalViewLayout {Rows = 2};_imageViewer。ViewLayout =布局;_imageViewer.UpdateTransform ();_imageViewer.Invalidate ();字符串味精=字符串.Format (”布局。Name = {0}\nLayout。SizeModeHeight = {1}\nLayout。sizemodehightitemcount = {2}\nLayout。SizeModeWidth = {3}\nLayout。SizeModeWidthItemCount = {4}\n"_imageViewer.ViewLayout.Name,_imageViewer.ViewLayout.SizeModeHeight,_imageViewer.ViewLayout.SizeModeHeightItemCount,_imageViewer.ViewLayout.SizeModeWidth,_imageViewer.ViewLayout.SizeModeWidthItemCount);对话框。显示(味精,“ImageViewerLayout信息”);
进口Leadtools进口Leadtools。控制进口Leadtools。编解码器进口Leadtools。画进口Leadtools。ImageProcessing进口Leadtools.ImageProcessing.Color进口LeadtoolsControlsExamples.LeadtoolsExamples.Common公共ImageViewerViewLayout_Example ()昏暗的布局作为ImageViewerHorizontalViewLayout ()布局。行数= 2_imageViewer。ViewLayout = layout_imageViewer.UpdateTransform ()_imageViewer.Invalidate ()昏暗的味精作为字符串字符串.Format (”布局。Name = {0}"&常数。vbLf &”布局。SizeModeHeight = {1}"常量。vbLf &”布局。size = {2}"&常数。vbLf &”布局。SizeModeWidth = {3}"&常数。vbLf &”布局。SizeModeWidthItemCount = {4}"常量。vbLf _imageViewer.ViewLayout。名称、_imageViewer.ViewLayout.SizeModeHeight_imageViewer.ViewLayout.SizeModeHeightItemCount,_imageViewer.ViewLayout.SizeModeWidth,_imageViewer.ViewLayout.SizeModeWidthItemCount)对话框。显示(味精,“ImageViewerLayout信息”结束
需求
目标平台
Leadtools。控制作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权公告
©1991 - 2021领德科技有限公司版权所有。