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. Knapsack CodeForces - 1132E (多重背包)

    可以将大量同种物品合并为$lcm$来优化, 复杂度$O(nlcm^2)$, 好像可以用bitset优化到$O(nlcm^2/\omega)$, 但是没看太懂 const int L = 840, M ...

  2. python-day33--Process类中的方法及属性

    p.daemon = True -->守护进程,守护进程不可以再有子进程,并且主进程死守护进程就死,要写在p.start()之前 p.join() ---> 主进程等子进程执行完 之后再结 ...

  3. oracle进行字符串拆分并组成数组

    CREATE OR REPLACE TYPE CUX_STR_SPLIT_TYPE IS TABLE OF VARCHAR2 (4000); CREATE OR REPLACE PACKAGE cux ...

  4. ReactJS环境搭建

    1.ReactJs 需要依赖nodejs环境,如果没有安装nodejs的话,需要安装.下载地址:https://nodejs.org/en/download/ 下载下来之后,安装windows版本的m ...

  5. 蓝桥杯—ALGO-122 未名湖畔的烦恼(枚举)

    问题描述 每年冬天,北大未名湖上都是滑冰的好地方.北大体育组准备了许多冰鞋,可是人太多了, 每天下午收工后,常常一双冰鞋都不剩. 每天早上,租鞋窗口都会排起长龙,假设有还鞋的m个,有需要租鞋的n个. ...

  6. jsp jstl标签库核心标签

    JSTL标签库介绍 JSTL标签库的使用时为了弥补html标签的不足,规范自定义标签的使用而诞生的.使用标签的目的就是不希望在jsp页面中出现java逻辑代码 全称:JSTL标签库分类 核心标签库使用 ...

  7. cas AuthenticationFilter

    AuthenticationFilter *** 这个类的作用:判断是否已经登录,如果没有登录则根据配置的信息来决定将跳转到什么地方 *** casServerLoginUrl:定义cas 服务器的登 ...

  8. 使用简单的python语句编写爬虫 定时拿取信息并存入txt

    # -*- coding: utf-8 -*- #解决编码问题import urllibimport urllib2import reimport osimport time page = 1url ...

  9. windows自动快捷方式

    http://jingyan.baidu.com/article/dca1fa6fb8c408f1a5405242.html

  10. L236

    The Norwegian Authority for Investigation of Economic and Environmental Crime (Okokrim) said the mov ...