Edit

Share via


Balloon.Mode Property

Definition

Returns or sets the modal behavior of the Office Assistant balloon.

public:
 property Microsoft::Office::Core::MsoModeType Mode { Microsoft::Office::Core::MsoModeType get(); void set(Microsoft::Office::Core::MsoModeType value); };
public Microsoft.Office.Core.MsoModeType Mode { get; set; }
member this.Mode : Microsoft.Office.Core.MsoModeType with get, set
Public Property Mode As MsoModeType

Property Value

Remarks

Some of the content in this topic may not be applicable to some languages.

When you create a Balloon object, this property is initially set to msoModeModal.

If the Mode property for a balloon is set to msoModeModeless, the user can work in the application while the balloon is visible. If the property is set to msoModeModal, the user must dismiss the balloon before continuing to work in the application. If the property is set to msoModeAutoDown, the balloon is dismissed when the user clicks anywhere on the screen.

If the Mode property for a balloon is set to msoModeModeless and a value for the Callback property is not supplied, an error occurs. The Close() method can only be used in the procedure specified by the Callback property when the Mode property is set to msoModeModeless.

Applies to