https://documentation.devexpress.com/#WindowsForms/clsDevExpressUtilsSharedImageCollectiontopic

The image collection that allows you to share images between controls within multiple forms.

Remarks

The SharedImageCollection extends features of the ImageCollection with the capability to share images between controls within multiple forms.

The contents of all SharedImageCollections within the same project are synchronized.

You can drop a SharedImageCollection onto a form and add images to this collection.

You can then drop another SharedImageCollection(s) onto another form(s) and will get access to the same images within these forms.

Note:Images in SharedImageCollections within different forms are synchronized at design time only if the forms remain open.

Unlike the ImageCollection, the SharedImageCollection does not resize images (according to SharedImageCollection.ImageSource.ImageSize property) when they are added to the collection.

At runtime, to add images to the SharedImageCollection, use the ImageSource property, which is of the ImageCollection type.

At design time, you can load images from different sources using the component's smart tag menu.

For more information on image load options and how to use images from image collections in WinForms controls, see ImageCollection.

You can load images to the SharedImageCollection from project resources (The project must be built prior to loading images from resources).

Do not use this feature when you need to share images stored in one project's resources between two or more projects within a single solution.

To share images between multiple projects merged into a single solution, add these images to the SharedImageCollection directly by loading them from disk.

Alternatively, you can create a separate image library to store common images and use the Load Images from External Assembly approach described in the ImageCollection topic.

SharedImageCollection的更多相关文章

  1. TreeList的使用

    添加列 TreeListColumn column = treeList1.Columns.Add(); column.Caption = @"建筑列表"; column.Visi ...

  2. ImageCollection

    https://documentation.devexpress.com/#WindowsForms/clsDevExpressUtilsImageCollectiontopic The collec ...

随机推荐

  1. robot framework学习笔记1之_环境安装(win7)

    一.简介 Robotframework是基于Python的自动化测试框架.使用关键字驱动的测试方法,自带丰富的库函数可直接引用,可使用Java/Python进行功能库扩展,测试用例使用TSV/HTML ...

  2. 『Kaggle』分类任务_决策树&集成模型&DataFrame向量化操作

    决策树这节中涉及到了很多pandas中的新的函数用法等,所以我单拿出来详细的理解一下这些pandas处理过程,进一步理解pandas背后的数据处理的手段原理. 决策树程序 数据载入 pd.read_c ...

  3. 『cs231n』神经网络组件

  4. dp练习(4)——过河卒

    1010 过河卒 2002年NOIP全国联赛普及组  时间限制: 1 s  空间限制: 128000 KB  题目等级 : 黄金 Gold 题解       题目描述 Description 如图,A ...

  5. 46. 47. Permutations

    求全排列. 1. 无重复元素 Given a collection of distinct numbers, return all possible permutations. For example ...

  6. 用实例说明Spark stage划分原理

    注意:此文的stage划分有错,stage的划分是以shuffle操作作为边界的,可以参考<spark大数据处理技术>第四章page rank例子! 参考:http://litaotao. ...

  7. STM32F103各PIN脚封装图

    1.36PIN 2.48PIN 3.64PIN 4.100PIN STM32ZET6详细pin脚图

  8. 快速切题 poj1573

    Robot Motion Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 10708   Accepted: 5192 Des ...

  9. [工作]双核系统struts-config.xml

    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC & ...

  10. Win7下的flutter环境安装配置

    随着 2018 年底 GOOGLE 正式发布了 flutter1.0,这个原生开发框架大火,试用了一下确实不错,代码状态即时刷新,所见即所得.APP 开发的环境安装,比较复杂,很多初学者在这一步就被 ...