Partager via


Balloon.Mode Property

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

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property Mode As MsoModeType
    Get
    Set
'Usage
Dim instance As Balloon
Dim value As MsoModeType

value = instance.Mode

instance.Mode = value
MsoModeType Mode { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoModeType

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.

See Also

Reference

Balloon Interface

Balloon Members

Microsoft.Office.Core Namespace