Editar

Partilhar via


OwnerDrawPropertyBag Class

Definition

Contains values of properties that a component might need only occasionally.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class OwnerDrawPropertyBag : MarshalByRefObject, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class OwnerDrawPropertyBag : MarshalByRefObject, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type OwnerDrawPropertyBag = class
    inherit MarshalByRefObject
    interface ISerializable
Public Class OwnerDrawPropertyBag
Inherits MarshalByRefObject
Implements ISerializable
Inheritance
OwnerDrawPropertyBag
Attributes
Implements

Remarks

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.

The OwnerDrawPropertyBag is used internally to the .NET Framework, and its constructors are private. You cannot create an instance of the OwnerDrawPropertyBag.

Constructors

OwnerDrawPropertyBag(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the OwnerDrawPropertyBag class.

Properties

BackColor

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the background color for the component.

Font

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the font of the text displayed by the component.

ForeColor

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the foreground color of the component.

Methods

Copy(OwnerDrawPropertyBag)

This API supports the product infrastructure and is not intended to be used directly from your code.

Copies an OwnerDrawPropertyBag.

CreateObjRef(Type)

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)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
IsEmpty()

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns whether the OwnerDrawPropertyBag contains all default values.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code.

Populates the specified SerializationInfo with the data needed to serialize the target object.

Applies to

See also