All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

XtraForm.IconOptions Property

Provides access to image settings that allow you to assign raster and vector images to XtraForms (instead of traditional .ico images).

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DXCategory("Appearance")]
public FormIconOptions IconOptions { get; }
<DXCategory("Appearance")>
Public ReadOnly Property IconOptions As FormIconOptions

Property Value

Type Description
DevExpress.XtraEditors.FormIconOptions

Provides access to form icon-related settings.

Remarks

Use this property to set up vector or raster image for this form instance.

this.IconOptions.SvgImage = Properties.Resources.barcodeImage;

Note that images assigned through the IconOptions object (IconOptions.Image, IconOptions.SvgImage, IconOptions.ImageURI) have priority over the standard Icon property.

A forms icon size is fixed, you cannot use the IconOptions.SvgImageSize property to change this size.

If you need to set up the same image for all DevExpress forms in your application, use the static FormIconOptions.Default property.

using DevExpress.XtraEditors;

FormIconOptions.Default.SvgImage = Properties.Resources.avocado;
See Also