TileItemElement.Assign(TileItemElement) Method

Copies the content and content settings of the specific TileItemElement to the current one.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll


public virtual void Assign(
    TileItemElement src
Public Overridable Sub Assign(
    src As TileItemElement


Name Type Description
src TileItemElement

A TileItemElement whose content and settings should be copied to the current element.


The Assign method copies the text (TileItemElement.Text) and glyph (TileItemElement.Image) of the target TileItemElement to the current one. Content appearance settings, such as the TileItemElement.TextAlignment, TileItemElement.ImageAlignment, TileItemElement.ImageToTextAlignment and TileItemElement.ImageScaleMode properties values are copied as well.

Use the TileItemElement.AssignWithoutDefault method instead to manually set which content type (text or image) should be copied.

See Also