windowsforms-devexpress-dot-xtrabars-dot-barmanager-29280d32.md
Gets or sets the value that specifies how the display size of images is determined, when the images are obtained from a SharedImageCollection.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(SharedImageCollectionImageSizeMode.UseCollectionImageSize)]
[DXCategory("Behavior")]
public SharedImageCollectionImageSizeMode SharedImageCollectionImageSizeMode { get; set; }
<DXCategory("Behavior")>
<DefaultValue(SharedImageCollectionImageSizeMode.UseCollectionImageSize)>
Public Property SharedImageCollectionImageSizeMode As SharedImageCollectionImageSizeMode
| Type | Default | Description |
|---|---|---|
| SharedImageCollectionImageSizeMode | UseCollectionImageSize |
A SharedImageCollectionImageSizeMode value.
|
Available values:
| Name | Description |
|---|---|
| UseCollectionImageSize |
The size of an image being displayed by an object is determined by the ImageSize property of the bound SharedImageCollection.
| | UseImageSize |
The size of an image being displayed by an object is determined by the size of the corresponding Image item in the bound SharedImageCollection.
|
A BarManager can display images from a SharedImageCollection. To bind it to a SharedImageCollection , use the BarManager.Images or BarManager.LargeImages property.
The display size of images obtained from a SharedImageCollection can be specified by the SharedImageCollectionImageSizeMode property.
If this property is set to UseCollectionImageSize , all displayed images will be of the same size specified by the SharedImageCollection ‘s ImageSize property. If the SharedImageCollectionImageSizeMode property is set to UseImageSize , displayed images can be of different sizes. The size of each individual image is determined by the size of the corresponding Image object in the bound SharedImageCollection.
See Also