ContactCard.Show 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在指定矩形外的指定 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。