RepositoryItemPictureEdit.Caption Property

Gets or sets the caption displayed in the control and settings used to paint the caption.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

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

Property Value

Type Description
DevExpress.XtraEditors.PictureEditCaption

A PictureEditCaption object that specifies the caption itself and settings used to paint it in the control.

Remarks

The Caption property allows you to specify a caption for the picture displayed in the PictureEdit control. To specify the caption text, use the PictureEditCaption.Text property. The PictureEditCaption object also comprises the following properties that allow you to customize the caption view:

  • Aligment—gets or sets the caption alignment relative to the control;
  • ContentPadding—gets or sets the amount of space around the caption;
  • Offset—gets or sets the translation from the control edge at which the caption is aligned;
  • Appearance—provides access to the font and color settings;
  • Visible—gets or sets whether the caption is visible.

The figure below shows the PictureEdit control that displays the caption for the image at the top right edge.

PictureEdit_Caption

See Also