ContactCard.Show Method

Definition

Displays the contact card at the specified x-coordinate position outside the specified rectangle.

public void Show (Microsoft.Office.Core.MsoContactCardStyle CardStyle, int RectangleLeft, int RectangleRight, int RectangleTop, int RectangleBottom, int HorizontalPosition, bool ShowWithDelay = false);
abstract member Show : Microsoft.Office.Core.MsoContactCardStyle * int * int * int * int * int * bool -> unit
Public Sub Show (CardStyle As MsoContactCardStyle, RectangleLeft As Integer, RectangleRight As Integer, RectangleTop As Integer, RectangleBottom As Integer, HorizontalPosition As Integer, Optional ShowWithDelay As Boolean = false)

Parameters

CardStyle
MsoContactCardStyle

MsoContactCardStyle that determines whether the card is displayed as a hover card or as a fully expanded card.

RectangleLeft
Int32

Specifies the x-coordinate of the left side of the rectangle where the card is not displayed.

RectangleRight
Int32

Specifies the x-coordinate of the right side of the rectangle where the card is not displayed.

RectangleTop
Int32

Specifies the y-coordinate of the top side of the rectangle where the card is not displayed.

RectangleBottom
Int32

Specifies the y-coordinate of the bottom side of the rectangle where the card is not displayed.

HorizontalPosition
Int32

Specifies the x-coordinate position of the left edge of the card.

ShowWithDelay
Boolean

Determines if there is a delay before the card is displayed.

Remarks

The Style parameter must be one of the MsoContactCardStyle values in the following table.

msoContactCardTypeEnterpriseContact 0Represents a contact card for an enterprise contact address.
msoContactCardTypePersonalContact 1Represents a contact card for a personal contact address.
msoContactCardTypeUnknownContact 2Represents a contact card for an unknown contact address.
msoContactCardTypeEnterpriseGroup 3Represents a contact card for an enterprise distribution list contact address.
msoContactCardTypePersonalDistributionList 4Represents a contact card for a personal distribution list contact address.

The fDelay parameter applies only if Style is set to “msoContactCardStyleHover”. For all other card styles, fDelay is ignored.

Applies to