WebPartDisplayModeCancelEventArgs WebPartDisplayModeCancelEventArgs WebPartDisplayModeCancelEventArgs WebPartDisplayModeCancelEventArgs Class


Provides data for the DisplayModeChanging cancelable event.

public ref class WebPartDisplayModeCancelEventArgs : System::ComponentModel::CancelEventArgs
public class WebPartDisplayModeCancelEventArgs : System.ComponentModel.CancelEventArgs
type WebPartDisplayModeCancelEventArgs = class
    inherit CancelEventArgs
Public Class WebPartDisplayModeCancelEventArgs
Inherits CancelEventArgs


The WebPartDisplayModeCancelEventArgs class contains information for the DisplayModeChanging event. The WebPartEventArgs class provides access to the display mode that will be applied to the Web Parts control. The display mode is accessed through the NewDisplayMode property.


WebPartDisplayModeCancelEventArgs(WebPartDisplayMode) WebPartDisplayModeCancelEventArgs(WebPartDisplayMode) WebPartDisplayModeCancelEventArgs(WebPartDisplayMode) WebPartDisplayModeCancelEventArgs(WebPartDisplayMode)

Initializes a new instance of the WebPartDisplayModeCancelEventArgs class.


Cancel Cancel Cancel Cancel

Gets or sets a value indicating whether the event should be canceled.

(Inherited from CancelEventArgs)
NewDisplayMode NewDisplayMode NewDisplayMode NewDisplayMode

Gets or sets the display mode to apply to a Web Parts control.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to