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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.WebMatrix.Extensibility 命名空间