RibbonToggleButton 类
适用于版本2
表示功能区切换按钮。
继承层次结构
System.Object
Microsoft.WebMatrix.Extensibility.RibbonItem
Microsoft.WebMatrix.Extensibility.RibbonButton
Microsoft.WebMatrix.Extensibility.RibbonToggleButton
命名空间: Microsoft.WebMatrix.Extensibility
程序集: Microsoft.WebMatrix.Extensibility(在 Microsoft.WebMatrix.Extensibility.dll 中)
语法
声明
Public Class RibbonToggleButton _
Inherits RibbonButton _
Implements INotifyPropertyChanged
用法
Dim instance As RibbonToggleButton
public class RibbonToggleButton : RibbonButton,
INotifyPropertyChanged
public ref class RibbonToggleButton : public RibbonButton,
INotifyPropertyChanged
type RibbonToggleButton =
class
inherit RibbonButton
interface INotifyPropertyChanged
end
public class RibbonToggleButton extends RibbonButton implements INotifyPropertyChanged
RibbonToggleButton 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
RibbonToggleButton(String, ICommandId, Object, Bitmap, Bitmap) | 初始化 RibbonToggleButton 类的新实例。 | |
RibbonToggleButton(String, ICommandId, Object, ImageSource, ImageSource) | 初始化 RibbonToggleButton 类的新实例。 | |
RibbonToggleButton(String, ICommand, Object, Bitmap, Bitmap) | 初始化 RibbonToggleButton 类的新实例。 | |
RibbonToggleButton(String, ICommand, Object, ImageSource, ImageSource) | 初始化 RibbonToggleButton 类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
Command | 获取或设置按下按钮时要调用的命令。 (从 RibbonButton 继承。) | |
CommandId | 获取或设置按下按钮时要调用的命令 ID。 (从 RibbonButton 继承。) | |
CommandParameter | 获取或设置要传递到命令或 CommandId 的命令参数。 (从 RibbonButton 继承。) | |
IsChecked | 获取或设置一个值,该值指示按钮是否被选中(切换)。 | |
Label | 获取项的标签。 (从 RibbonItem 继承。) | |
LargeImage | 获取或设置按钮的 32x32 图像。 (从 RibbonButton 继承。) | |
SmallImage | 获取或设置按钮的 16x16 图像。 (从 RibbonButton 继承。) |
页首
方法
名称 | 说明 | |
---|---|---|
Equals | (从 Object 继承。) | |
Finalize | (从 Object 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
ToString | (从 Object 继承。) |
页首
事件
名称 | 说明 | |
---|---|---|
PropertyChanged | 在属性更改值时发生。 |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。