ContactCard.Show Method
Displays the contact card at the specified x-coordinate position outside the specified rectangle.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub Show ( _
CardStyle As MsoContactCardStyle, _
RectangleLeft As Integer, _
RectangleRight As Integer, _
RectangleTop As Integer, _
RectangleBottom As Integer, _
HorizontalPosition As Integer, _
ShowWithDelay As Boolean _
)
'Usage
Dim instance As ContactCard
Dim CardStyle As MsoContactCardStyle
Dim RectangleLeft As Integer
Dim RectangleRight As Integer
Dim RectangleTop As Integer
Dim RectangleBottom As Integer
Dim HorizontalPosition As Integer
Dim ShowWithDelay As Boolean
instance.Show(CardStyle, RectangleLeft, _
RectangleRight, RectangleTop, RectangleBottom, _
HorizontalPosition, ShowWithDelay)
void Show(
MsoContactCardStyle CardStyle,
int RectangleLeft,
int RectangleRight,
int RectangleTop,
int RectangleBottom,
int HorizontalPosition,
bool ShowWithDelay
)
Parameters
CardStyle
Type: Microsoft.Office.Core.MsoContactCardStyleMsoContactCardStyle that determines whether the card is displayed as a hover card or as a fully expanded card.
RectangleLeft
Type: System.Int32Specifies the x-coordinate of the left side of the rectangle where the card is not displayed.
RectangleRight
Type: System.Int32Specifies the x-coordinate of the right side of the rectangle where the card is not displayed.
RectangleTop
Type: System.Int32Specifies the y-coordinate of the top side of the rectangle where the card is not displayed.
RectangleBottom
Type: System.Int32Specifies the y-coordinate of the bottom side of the rectangle where the card is not displayed.
HorizontalPosition
Type: System.Int32Specifies the x-coordinate position of the left edge of the card.
ShowWithDelay
Type: System.BooleanDetermines 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.
Constant |
Value |
Description |
---|---|---|
msoContactCardTypeEnterpriseContact |
0 |
Represents a contact card for an enterprise contact address. |
msoContactCardTypePersonalContact |
1 |
Represents a contact card for a personal contact address. |
msoContactCardTypeUnknownContact |
2 |
Represents a contact card for an unknown contact address. |
msoContactCardTypeEnterpriseGroup |
3 |
Represents a contact card for an enterprise distribution list contact address. |
msoContactCardTypePersonalDistributionList |
4 |
Represents 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.