This documentation is archived and is not being maintained.

AppearanceEditorPart::ApplyChanges Method

Saves the values from an AppearanceEditorPart control to the corresponding properties in the associated WebPart control.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public:
virtual bool ApplyChanges() override

Return Value

Type: System::Boolean
true if the action of saving values from the AppearanceEditorPart control to the WebPart control is successful; otherwise (if an error occurs), false.

ExceptionCondition
Exception

An error occurs when setting the value for any of the following properties on the WebPart control that is being edited:

Title

ChromeType

Direction

Height

Width

Hidden

The ApplyChanges method is a critical method on a AppearanceEditorPart control. It is called when the user clicks a button representing an OK or an apply verb in the editing user interface (UI).

The method's purpose is to save the values a user has set on an AppearanceEditorPart control to the corresponding properties in the associated WebPart control. The associated control is referenced in the inherited WebPartToEdit property.

The ApplyChanges method attempts to set the following properties on the associated WebPart control:

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: