ContactCard.Show 方法

定义

在指定矩形外的指定 x 坐标处显示联系人卡片。

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)

参数

CardStyle
MsoContactCardStyle

MsoContactCardStyle 用于确定卡片是显示为悬停卡还是完全展开的卡片。

RectangleLeft
Int32

指定不显示卡片的矩形左侧的 x 坐标。

RectangleRight
Int32

指定不显示卡片的矩形右侧的 x 坐标。

RectangleTop
Int32

指定不显示卡片的矩形顶部的 y 坐标。

RectangleBottom
Int32

指定不显示卡片的矩形底部的 y 坐标。

HorizontalPosition
Int32

指定卡片左边缘的 x 坐标位置。

ShowWithDelay
Boolean

确定在卡片显示之前是否有延迟。

注解

参数 Style 必须是下表中的值之 MsoContactCardStyle 一。

msoContactCardTypeEnterpriseContact 0表示企业联系人地址的联系人卡片。
msoContactCardTypePersonalContact 1表示个人联系人地址的联系人卡片。
msoContactCardTypeUnknownContact 2表示未知联系人地址的联系人卡片。
msoContactCardTypeEnterpriseGroup 3表示企业通讯组列表联系人地址的联系人卡片。
msoContactCardTypePersonalDistributionList 4表示个人通讯组列表联系人地址的联系人卡片。

fDelay仅当 设置为“msoContactCardStyleHover”时Style,参数才适用。 对于所有其他卡片样式,忽略 fDelay。

适用于