DesignTimeVisibleAttribute クラス

定義

DesignTimeVisibleAttribute コンポーネントの可視性をマークします。 Yes が存在する場合、ビジュアル デザイナーはデザイナーにこのコンポーネントを表示できます。

public ref class DesignTimeVisibleAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface)]
public sealed class DesignTimeVisibleAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface)>]
type DesignTimeVisibleAttribute = class
    inherit Attribute
Public NotInheritable Class DesignTimeVisibleAttribute
Inherits Attribute
継承
DesignTimeVisibleAttribute
属性

注釈

DesignTimeVisibleAttributeはデザイナーのヒントです。 UI が存在するコンポーネントの場合、デザイナーはこの属性を無視します。 クラスにのみ適用できます。

DesignTimeVisibleAttributeは、子コンポーネントを受け入れるコントロールがある場合に最も便利です。 たとえば、System.Windows.Forms.TreeView コントロールのノード項目は、System.Windows.Forms.TreeView コントロールによって描画されるため、コンポーネント トレイには表示されません。

コンストラクター

名前 説明
DesignTimeVisibleAttribute()

falseの既定値に設定された新しいDesignTimeVisibleAttributeを作成します。

DesignTimeVisibleAttribute(Boolean)

Visible プロパティを visible の指定された値に設定して、新しいDesignTimeVisibleAttributeを作成します。

フィールド

名前 説明
Default

Yesされる既定の可視性。

No

コンポーネントをビジュアル デザイナーに表示されないようにマークします。

Yes

コンポーネントをビジュアル デザイナーに表示されるようにマークします。

プロパティ

名前 説明
TypeId

派生クラスで実装されている場合は、この Attributeの一意の識別子を取得します。

(継承元 Attribute)
Visible

デザイン時にコンポーネントを表示するかどうかを取得または設定します。

メソッド

名前 説明
Equals(Object)

このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。

GetHashCode()

このインスタンスのハッシュ コードを返します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IsDefaultAttribute()

このインスタンスが Default 値と等しいかどうかを示す値を取得します。

Match(Object)

派生クラスでオーバーライドされた場合、このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

名前 説明
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

一連の名前を対応する一連のディスパッチ識別子に割り当てます。

(継承元 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

インターフェイスの型情報を取得するために使用できるオブジェクトの型情報を取得します。

(継承元 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。

(継承元 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

オブジェクトによって公開されるプロパティとメソッドへのアクセスを提供します。

(継承元 Attribute)

適用対象