ComponentDesigner.InvokeGetInheritanceAttribute メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ComponentDesigner.InvokeGetInheritanceAttribute メソッドの意味・解説 

ComponentDesigner.InvokeGetInheritanceAttribute メソッド

指定した ComponentDesigner の InheritanceAttribute を取得します

名前空間: System.ComponentModel.Design
アセンブリ: System.Design (system.design.dll 内)
構文構文

Protected Function InvokeGetInheritanceAttribute
 ( _
    toInvoke As ComponentDesigner _
) As InheritanceAttribute
Dim toInvoke As ComponentDesigner
Dim returnValue As InheritanceAttribute

returnValue = Me.InvokeGetInheritanceAttribute(toInvoke)
protected InheritanceAttribute InvokeGetInheritanceAttribute (
    ComponentDesigner toInvoke
)
protected:
InheritanceAttribute^ InvokeGetInheritanceAttribute (
    ComponentDesigner^ toInvoke
)
protected InheritanceAttribute InvokeGetInheritanceAttribute (
    ComponentDesigner toInvoke
)
protected function InvokeGetInheritanceAttribute
 (
    toInvoke : ComponentDesigner
) : InheritanceAttribute

パラメータ

toInvoke

継承属性取得する対象の ComponentDesigner。

戻り値
指定したデザイナInheritanceAttribute

使用例使用例
   Public Class DesignerSample
      Inherits ComponentDesigner
      
      Public Overrides ReadOnly
 Property Verbs() As DesignerVerbCollection
         Get
            ' Specifies a new verb that will show up in the context
 menu for the component.
            Dim clickVerb As New
 DesignerVerb("Click Me!", New
 EventHandler(AddressOf OnVerbClicked))
            Return New DesignerVerbCollection(New
 DesignerVerb() {clickVerb})
         End Get
      End Property
      
      
      Private Sub OnVerbClicked(sender As
 Object, e As EventArgs)
         MessageBox.Show("This verb was clicked")
      End Sub 'OnVerbClicked
   End Class 'DesignerSample
<br /><span space="preserve">...</span><br
 />   <Designer(GetType(DesignerSample))>  _
   Public Class DesignerComponent
      Inherits Component
   End Class 'DesignerComponent
    _
public class DesignerSample : ComponentDesigner
{
    public override DesignerVerbCollection Verbs 
    {
        get
        {
            // Specifies a new verb that will show up in the shortcut
 menu for the component.
            DesignerVerb clickVerb = new DesignerVerb("Click
 Me!", new EventHandler(OnVerbClicked));
            return new DesignerVerbCollection(new
 DesignerVerb[] {clickVerb});
        }
    }

    private void OnVerbClicked(object sender,
 EventArgs e) 
    {
        MessageBox.Show("This verb was clicked");
    }
}
<br /><span space="preserve">...</span><br />[Designer(typeof(DesignerSample))]
public class DesignerComponent : Component
{
}
   public ref class DesignerSample: public
 ComponentDesigner
   {
   public:

      property DesignerVerbCollection^ Verbs 
      {
         virtual DesignerVerbCollection^ get() override
         {
            // Specifies a new verb that will show up in the shortcut
 menu for the component.
            DesignerVerb^ clickVerb = gcnew DesignerVerb( "Click Me!",gcnew
 EventHandler( this, &DesignerSample::OnVerbClicked ) );
            array<DesignerVerb^>^myArray = {clickVerb};
            return gcnew DesignerVerbCollection( myArray );
         }
      }

   private:
      void OnVerbClicked( Object^ /*sender*/, EventArgs^ /*e*/
 )
      {
         MessageBox::Show( "This verb was clicked" );
      }
   };
<br /><span space="preserve">...</span><br /> 
  [Designer(DesignerSample::typeid)]
   public ref class DesignerComponent: public
 Component{};
public class DesignerSample
   extends ComponentDesigner
{
    /** @property 
     */
    public DesignerVerbCollection get_Verbs()
    {
        // Specifies a new verb that will show up in the shortcut menu
 for the 
        // component.
        DesignerVerb clickVerb =
            new DesignerVerb("Click Me!", new
 EventHandler(OnVerbClicked));
        return new DesignerVerbCollection(new
 DesignerVerb[] { clickVerb });
    } //get_Verbs

    private void OnVerbClicked(Object sender,
 EventArgs e)
    {
        MessageBox.Show("This verb was clicked");
    } //OnVerbClicked
} //DesignerSample
<br /><span space="preserve">...</span><br />/**
 @attribute Designer(DesignerSample.class)
 */
public class DesignerComponent extends Component
{
} //DesignerComponent
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ComponentDesigner クラス
ComponentDesigner メンバ
System.ComponentModel.Design 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ComponentDesigner.InvokeGetInheritanceAttribute メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ComponentDesigner.InvokeGetInheritanceAttribute メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS