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
public boolean ApplyChanges ()
public override function ApplyChanges () : boolean
Not applicable.

Return Value

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

Exception typeCondition

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:

  • Title

  • ChromeType

  • Direction

  • Height

  • Width

  • Hidden

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: