PropertyGrid.BrowsableAttributes 屬性

定義

取得或設定可瀏覽的屬性,該屬性與附有屬性方格的物件產生關聯。

public:
 property System::ComponentModel::AttributeCollection ^ BrowsableAttributes { System::ComponentModel::AttributeCollection ^ get(); void set(System::ComponentModel::AttributeCollection ^ value); };
[System.ComponentModel.Browsable(false)]
public System.ComponentModel.AttributeCollection BrowsableAttributes { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.BrowsableAttributes : System.ComponentModel.AttributeCollection with get, set
Public Property BrowsableAttributes As AttributeCollection

屬性值

與物件產生關聯之可瀏覽屬性的集合。

屬性

備註

只有屬性符合指定值的屬性才會顯示在 中 PropertyGrid 。 預設值是 AttributeCollectionBrowsableAttribute.Yes 包含 的 。

指派空的屬性集合,或 會導致 null 使用 BrowsableAttribute.Yes set 建立新的 AttributeCollection

適用於

另請參閱