Partager via


Balloon.SetAvoidRectangle Method

Prevents the Office Assistant balloon from being displayed in a specified area of the screen.

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

Syntax

'Declaration
Sub SetAvoidRectangle ( _
    Left As Integer, _
    Top As Integer, _
    Right As Integer, _
    Bottom As Integer _
)
'Usage
Dim instance As Balloon
Dim Left As Integer
Dim Top As Integer
Dim Right As Integer
Dim Bottom As Integer

instance.SetAvoidRectangle(Left, Top, _
    Right, Bottom)
void SetAvoidRectangle(
    int Left,
    int Top,
    int Right,
    int Bottom
)

Parameters

  • Left
    Type: System.Int32

    Required Integer. The coordinates (in points and relative to the screen) of the area of the screen that the Office Assistant balloon will avoid when it's displayed.

  • Top
    Type: System.Int32

    Required Integer. The coordinates (in points and relative to the screen) of the area of the screen that the Office Assistant balloon will avoid when it's displayed.

  • Right
    Type: System.Int32

    Required Integer. The coordinates (in points and relative to the screen) of the area of the screen that the Office Assistant balloon will avoid when it's displayed.

  • Bottom
    Type: System.Int32

    Required Integer. The coordinates (in points and relative to the screen) of the area of the screen that the Office Assistant balloon will avoid when it's displayed.

Remarks

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

This property returns a Assistant object.

This property is intended to prevent the Office Assistant balloon from overlapping custom dialog boxes and wizards.

See Also

Reference

Balloon Interface

Balloon Members

Microsoft.Office.Core Namespace