TileItemElement.AssignWithoutDefault(TileItemElement, Boolean, Boolean) Method
Copies the specific content and content settings of the target TileItemElement to the current one.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
public virtual void AssignWithoutDefault(
TileItemElement src,
bool assignText,
bool assignImage
)
Parameters
Name | Type | Description |
---|---|---|
src | TileItemElement | A TileItemElement whose content and settings should be copied to the current element. |
assignText | Boolean | true if text content should be copied; otherwise, false. |
assignImage | Boolean | true if a glyph should be copied; otherwise, false. |
Remarks
The AssignWithoutDefault 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.
Using the assignText and assignImage parameters you can choose whether the text content or a glyph of the target TileItemElement should be copied. If you want to copy the target element content entirely, set both of the parameters to true or use the TileItemElement.Assign method instead.