Skip to main content
A newer version of this page is available. .

RepositoryItemBlobBaseEdit.ShowIcon Property

Gets or sets a value specifying whether an identification icon is displayed within the editor’s edit region.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(true)]
public bool ShowIcon { get; set; }

Property Value

Type Default Description
Boolean **true**

true if a BLOB editor displays an identification icon; otherwise, false.

Remarks

If this property is true (the default behavior), a BLOB editor displays a identification icon within its edit region. This icon is used to identify the type of data stored within the editor and to notify end-users whether the editor contains data. By default, each type of BLOB editor (MemoExEdit and ImageEdit) has its own internal pair of predefined icons: a bright one is drawn when the editor contains data; otherwise, a dimmed icon is used. Also, you can use the RepositoryItemBlobBaseEdit.Images property to specify your custom images.

When you set the ShowIcon property to false, no identification icons will be displayed within the BLOB editor’s edit region. In this case, if a BLOB editor is not empty, its edit region will contain text - first line text (or some of it) for MemoExEdit and the class name of a binary object () representing the loaded image for ImageEdit.

The following picture shows how changing the ShowIcon property from the default true value to false affects the look and feel of empty and populated BLOB editors (MemoExEdit and ImageEdit).

ImageEdit_ShowIcon.gif

Note: if the BLOB editor’s RepositoryItemBlobBaseEdit.TextEditStyle property is set to TextEditStyles.HideTextEditor, the editor cannot display any icons regardless of the ShowIcon property setting.

Changing the value of this property at runtime raises the RepositoryItem.PropertiesChanged event.

See Also