Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

OwnerDrawPropertyBag Class

 

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

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System.Object
  System.MarshalByRefObject
    System.Windows.Forms.OwnerDrawPropertyBag

[SerializableAttribute]
public class OwnerDrawPropertyBag : MarshalByRefObject, ISerializable

NameDescription
System_CAPS_protmethodOwnerDrawPropertyBag(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.

NameDescription
System_CAPS_pubpropertyBackColor

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.

System_CAPS_pubpropertyFont

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.

System_CAPS_pubpropertyForeColor

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.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCopy(OwnerDrawPropertyBag)

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

System_CAPS_pubmethodCreateObjRef(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.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodIsEmpty()

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.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.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.

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.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: