DataGridViewColumnDesignTimeVisibleAttribute 類別

定義

指定 DataGridView 設計工具中是否可以看見資料行型別。 此類別無法獲得繼承。

public ref class DataGridViewColumnDesignTimeVisibleAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class DataGridViewColumnDesignTimeVisibleAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type DataGridViewColumnDesignTimeVisibleAttribute = class
    inherit Attribute
Public NotInheritable Class DataGridViewColumnDesignTimeVisibleAttribute
Inherits Attribute
繼承
DataGridViewColumnDesignTimeVisibleAttribute
屬性

備註

根據預設,衍生自 DataGridViewColumn 的類型會出現在 DataGridView Visual Studio 設計工具的控制項特定部分,但繼承 DesignTimeVisibleAttributeNo 的 ,以防止它們出現在設計工具的其他部分。 這是必要的,因為 DataGridViewColumn 型別會 IComponent 實作 介面,這通常會使型別的實例出現在設計工具中。

使用這個屬性可防止 DataGridViewColumn 類型出現在控制項特定的設計工具中 DataGridView

如需使用屬性的詳細資訊,請參閱 屬性

建構函式

DataGridViewColumnDesignTimeVisibleAttribute()

使用 true 的預設 DataGridViewColumnDesignTimeVisibleAttribute 屬性值來初始化 Visible 類別的新執行個體。

DataGridViewColumnDesignTimeVisibleAttribute(Boolean)

使用 DataGridViewColumnDesignTimeVisibleAttribute 屬性的指定預設值,初始化 Visible 類別的新執行個體。

欄位

Default

預設的 DataGridViewColumnDesignTimeVisibleAttribute 值 (亦即 Yes),表示 DataGridView 設計工具中可以看到資料行。

No

DataGridViewColumnDesignTimeVisibleAttribute 值,表示 DataGridView 設計工具中看不到資料行。

Yes

DataGridViewColumnDesignTimeVisibleAttribute 值,表示 DataGridView 設計工具中可以看見資料行。

屬性

TypeId

在衍生類別中實作時,取得這個 Attribute 的唯一識別碼。

(繼承來源 Attribute)
Visible

取得值,指出 DataGridView 設計工具中是否可以看見資料行型別。

方法

Equals(Object)

取得值,指出此物件是否相當於指定的物件。

GetHashCode()

傳回這個執行個體的雜湊碼。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IsDefaultAttribute()

取得值,指出這個屬性執行個體是否等於 Default 屬性值。

Match(Object)

在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。

(繼承來源 Attribute)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。

(繼承來源 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

擷取物件的類型資訊,可以用來取得介面的類型資訊。

(繼承來源 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

擷取物件提供的類型資訊介面數目 (0 或 1)。

(繼承來源 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

提供物件所公開的屬性和方法的存取權。

(繼承來源 Attribute)

適用於

另請參閱