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

TileItemElement.Assign(TileItemElement) Method

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public virtual void Assign(
    TileItemElement src
)

Parameters

Name Type Description
src TileItemElement

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

Remarks

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