OlkCommandButton 接口

定义

一个支持指定为命令的用户操作的控件。

public interface class OlkCommandButton : Microsoft::Office::Interop::Outlook::_OlkCommandButton, Microsoft::Office::Interop::Outlook::OlkCommandButtonEvents_Event
[System.Runtime.InteropServices.Guid("000672DB-0000-0000-C000-000000000046")]
public interface OlkCommandButton : Microsoft.Office.Interop.Outlook._OlkCommandButton, Microsoft.Office.Interop.Outlook.OlkCommandButtonEvents_Event
Public Interface OlkCommandButton
Implements _OlkCommandButton, OlkCommandButtonEvents_Event
派生
属性
实现

注解

这是派生自 COM Coclass(托管代码要求此 Coclass 来实现与相应的 COM 对象的互操作性)的 .NET 接口。 使用此派生的接口来访问所有方法、属性和 COM 对象的事件成员。 但是,如果您想要使用的方法或事件共享同一名称并且位于相同的 COM 对象下,请转换为相应的主接口以调用该方法,并转换为最新的事件接口以连接到该事件。 参考此主题以获取有关 COM 对象的信息。 有关 COM 对象的方法和属性成员的信息,请参阅 _OlkCommandButton。 有关 COM 对象的事件成员的信息,请参阅 OlkCommandButtonEvents_Event

在窗体设计器中首次使用此控件之前,应将 Microsoft Outlook 命令按钮控件添加到控件工具箱中。 您只能使用窗体设计器将此控件添加到 Outlook 窗体的窗体区域中。

下面是运行时的命令按钮控件的示例。 此控件支持 Microsoft Windows 主题。

有关 Outlook 控件的详细信息,请参阅 自定义窗体中的控件

属性

Accelerator

返回或设置 C# 中的 字符串 (字符串 ,) 表示控件的快捷键或热键的值。 读/写。

(继承自 _OlkCommandButton)
AutoSize

返回或设置 C#) 中的 布尔 值 (bool ,该布尔值会自动调整控件的大小以显示整个内容。 读/写。

(继承自 _OlkCommandButton)
Caption

返回或设置 C# ) 中的 字符串 (字符串,该 字符串 显示在对象上以标识或描述它。 读/写。

(继承自 _OlkCommandButton)
DisplayDropArrow

返回或设置 C #) 中的 布尔值 (布尔 值,该布尔值可在按钮上呈现向下箭头。 读/写。

(继承自 _OlkCommandButton)
Enabled

返回或设置 C #) 中 布尔值 (布尔 值,指示是否允许控件运行。 读/写。

(继承自 _OlkCommandButton)
Font

返回一个 StdFont ,表示用于在控件内呈现文本的字体。 只读。

(继承自 _OlkCommandButton)
MouseIcon

返回或设置一个 StdPicture ,该图片代表此控件的鼠标光标的自定义图片。 读/写。

(继承自 _OlkCommandButton)
MousePointer

返回或设置一个 OlMousePointer 常量,该常量指定当用户将鼠标悬停在控件上时显示的指针类型。 读/写。

(继承自 _OlkCommandButton)
Picture

返回或设置一个 StdPicture ,该值代表控件上显示的图片。 读/写。

(继承自 _OlkCommandButton)
PictureAlignment

返回或设置一个 OlPictureAlignment 常量,该常量指定图像和按钮上文本的对齐方式。 读/写。

(继承自 _OlkCommandButton)
TextAlign

返回或设置一个 OlTextAlign 常量,该常量指定文本在控件中的对齐方式。 读/写。

(继承自 _OlkCommandButton)
WordWrap

返回或设置 C#) 中的 布尔 值 (bool ,该值指定控件的内容是否自动换行在行的末尾。 读/写。

(继承自 _OlkCommandButton)

事件

AfterUpdate

当控件中的数据已通过用户界面更改后发生。

(继承自 OlkCommandButtonEvents_Event)
BeforeUpdate

当控件中的数据通过用户界面更改并且即将保存到项目中时发生。

(继承自 OlkCommandButtonEvents_Event)
Click

当用户在控件内单击时发生。

(继承自 OlkCommandButtonEvents_Event)
DoubleClick

当用户在控件内双击时发生。

(继承自 OlkCommandButtonEvents_Event)
Enter

在控件从同一窗体上的某个控件实际获得焦点前发生。

(继承自 OlkCommandButtonEvents_Event)
Exit

在焦点从此控件移到同一窗体上的另一个控件上后立即发生。

(继承自 OlkCommandButtonEvents_Event)
KeyDown

当用户按下某个键时发生。

(继承自 OlkCommandButtonEvents_Event)
KeyPress

当用户按某个 ANSI 键时发生。

(继承自 OlkCommandButtonEvents_Event)
KeyUp

当用户释放某个键时发生。

(继承自 OlkCommandButtonEvents_Event)
MouseDown

当用户在控件上按下鼠标按钮时发生。

(继承自 OlkCommandButtonEvents_Event)
MouseMove

在控件上出现鼠标移动后发生。

(继承自 OlkCommandButtonEvents_Event)
MouseUp

当用户在控件上释放已经按下的鼠标按钮后发生。

(继承自 OlkCommandButtonEvents_Event)

适用于