AccessibleObject.DefaultAction プロパティ
定義
オブジェクトの既定のアクションを説明する文字列を取得します。Gets a string that describes the default action of the object. 既定のアクションがないオブジェクトもあります。Not all objects have a default action.
public:
virtual property System::String ^ DefaultAction { System::String ^ get(); };
public virtual string DefaultAction { get; }
member this.DefaultAction : string
Public Overridable ReadOnly Property DefaultAction As String
プロパティ値
オブジェクトの既定のアクションの説明、またはこのオブジェクトの既定のアクションがない場合は、null
。A description of the default action for an object, or null
if this object has no default action.
例外
コントロールの既定のアクションを取得できません。The default action for the control cannot be retrieved.
注釈
文字列は、オブジェクトに対して実行されるアクションについて説明します。オブジェクトが結果として実行する処理ではありません。The string describes the action that is performed on an object, not what the object does as a result. つまり、ドキュメントを印刷するツールバーボタンには、[現在のドキュメントを印刷する] ではなく、"Press" という既定のアクションがあります。That is, a toolbar button that prints a document has a default action of "Press" rather than "Prints the current document." オブジェクトの既定のアクションとその値を混同しないようにしてください。Do not confuse an object's default action with its value.
注意 (継承者)
既定のアクションを持つシステムコントロールがオブジェクトによってラップされている場合、既定の実装は、ユーザー補助オブジェクトの既定のアクションを返します。それ以外の場合は null
を返します。The default implementation returns the accessible object's default action if the object wraps a system control that has a default action; otherwise, it returns null
. アクションを実行するコントロールのみが、このメソッドをサポートする必要があります。Only controls that perform actions should support this method. すべてのオブジェクトが既定のアクションを持つわけではありません。また、次の例のように、一部のオブジェクトには、@no__t 0 プロパティに関連する既定のアクションがある場合があります。チェックボックスをオンにすると、既定のアクションである "チェックの解除" と "Checked" の値が設定されます。Not all objects have default actions, and some objects might have a default action that is related to its Value property, such as in the following examples: A selected check box has a default action of "Uncheck" and a value of "Checked." チェックボックスがオフの場合、既定のアクションは "Check" で、値は "Unchecked" になります。A cleared check box has a default action of "Check" and a value of "Unchecked." "Print" というラベルが付いたボタンには、値のない "Press" という既定のアクションがあります。A button labeled "Print" has a default action of "Press," with no value. "Printer" と表示される静的テキストコントロールまたはエディットコントロールには、既定の動作はありませんが、"Printer" という値が設定されます。A static text control or an edit control that shows "Printer" has no default action, but would have a value of "Printer." オブジェクトの @no__t 0 プロパティは動詞または短い動詞句である必要があります。An object's DefaultAction property should be a verb or a short verb phrase.