Skip to main content

BaseAppearanceCollection.Assign(BaseAppearanceCollection) Method

Copies the settings from the object passed as the parameter.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

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.

See Also