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

BaseAppearanceCollection.Assign(BaseAppearanceCollection) Method

Copies the settings from the object passed as the parameter.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v18.2.dll

Declaration

public virtual void Assign(
    BaseAppearanceCollection source
)

Parameters

Name Type Description
source BaseAppearanceCollection

A BaseAppearanceCollection descendant representing the source of the operation. If null (Nothing in Visual Basic) this method does nothing.

Remarks

The BaseAppearanceCollection descendants (GridViewAppearances class, for instance) represent the appearance settings used to paint the visual elements of DevExpress .NET controls such as the XtraGrid, XtraTreeList, etc. The Properties of such objects are of the AppearanceObject type and provide settings which are used to paint a particular element in a control (button, header, band, data cell and etc.).

The Assign method allows you to have two BaseAppearanceCollection descendants with identical settings provided that these objects are of the same type. It copies the properties of the BaseAppearanceCollection descendant passed as the parameter to the current one.

Calling the Assign method raises the BaseAppearanceCollection.Changed event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Assign(BaseAppearanceCollection) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also