共用方式為


RibbonButton.CommandParameter 屬性

適用於版本2

取得或設定要傳遞給命令或 CommandId 的命令參數。

命名空間:  Microsoft.WebMatrix.Extensibility
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Public Property CommandParameter As Object 
    Get 
    Private Set
'用途
Dim instance As RibbonButton 
Dim value As Object 

value = instance.CommandParameter
public Object CommandParameter { get; private set; }
public:
property Object^ CommandParameter {
    Object^ get ();
    private: void set (Object^ value);
}
member CommandParameter : Object with get, private set
function get CommandParameter () : Object 
private function set CommandParameter (value : Object)

屬性值

型別:System.Object
要傳遞給命令或 CommandId 的命令參數。

請參閱

參考

RibbonButton 類別

Microsoft.WebMatrix.Extensibility 命名空間