OwnerDrawPropertyBag OwnerDrawPropertyBag OwnerDrawPropertyBag OwnerDrawPropertyBag Class

定義

包含元件在必要時才需要的屬性值。Contains values of properties that a component might need only occasionally.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public ref class OwnerDrawPropertyBag : MarshalByRefObject, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class OwnerDrawPropertyBag : MarshalByRefObject, System.Runtime.Serialization.ISerializable
type OwnerDrawPropertyBag = class
    inherit MarshalByRefObject
    interface ISerializable
Public Class OwnerDrawPropertyBag
Inherits MarshalByRefObject
Implements ISerializable
繼承
OwnerDrawPropertyBagOwnerDrawPropertyBagOwnerDrawPropertyBagOwnerDrawPropertyBag
屬性
實作

備註

OwnerDrawPropertyBag類別可讓類別看起來具有其實沒有的屬性。The OwnerDrawPropertyBag class enables a class to appear to have properties it really does not have. 然後, 類別可以在需要時使用屬性, 並在類別未使用屬性時儲存在記憶體上。The class can then use the properties when needed, and save on memory when the class does not use the properties.

OwnerDrawPropertyBag在內部使用 .NET Framework, 而且其「其」是私用的。The OwnerDrawPropertyBag is used internally to the .NET Framework, and its constructors are private. 您無法建立的實例OwnerDrawPropertyBagYou cannot create an instance of the OwnerDrawPropertyBag.

建構函式

OwnerDrawPropertyBag(SerializationInfo, StreamingContext) OwnerDrawPropertyBag(SerializationInfo, StreamingContext) OwnerDrawPropertyBag(SerializationInfo, StreamingContext) OwnerDrawPropertyBag(SerializationInfo, StreamingContext)

初始化 OwnerDrawPropertyBag 類別的新執行個體。Initializes a new instance of the OwnerDrawPropertyBag class.

屬性

BackColor BackColor BackColor BackColor

取得或設定元件的背景色彩。Gets or sets the background color for the component.

Font Font Font Font

取得或設定元件顯示之文字字型。Gets or sets the font of the text displayed by the component.

ForeColor ForeColor ForeColor ForeColor

取得或設定元件的前景色彩。Gets or sets the foreground color of the component.

方法

Copy(OwnerDrawPropertyBag) Copy(OwnerDrawPropertyBag) Copy(OwnerDrawPropertyBag) Copy(OwnerDrawPropertyBag)

複製 OwnerDrawPropertyBagCopies an OwnerDrawPropertyBag.

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
IsEmpty() IsEmpty() IsEmpty() IsEmpty()

傳回 OwnerDrawPropertyBag 是否包含所有預設值。Returns whether the OwnerDrawPropertyBag contains all default values.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

將序列化目標物件所需的資料填入 (Populate) 指定的 SerializationInfoPopulates the specified SerializationInfo with the data needed to serialize the target object.

適用於

另請參閱