A runtime form designer control

DeserializeComponentEventArgs.ReadProperty Method 

Reads value of a property from the previously serialized custom properties data.

[Visual Basic]
Public Function ReadProperty( _ 
   ByVal name As String, _ 
   ByVal defValue As Object _ 
) As Object
[C#]
public object ReadProperty(
   string name,
   object defValue
);
[C++]
public: Object* ReadProperty(
   String* name,
   Object* defValue
);
[JScript]
public function ReadProperty(
   String name,
   Object defValue
): Object;

Parameters

name
A string value identifying the custom property.
defValue
Default value of the specified custom property.

Return Value

Returns the value corresponding to the custom property identified by name. If the property is not present in the custom properties collection, returns defValue.

Remarks

If no property matching the specified name is found in custom properties in serialized data, the method returns the default value passed to the method.

Form designer does not apply the custom property values to the component. It is the responsibility of the programmer to use the custom properties as per the application requirements.

See Also

DeserializeComponentEventArgs Class | Viklele.Win.Designer Namespace