A runtime form designer control

SerializeComponentEventArgs.WriteProperty Method 

Adds a custom property value in the serialization data.

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

Parameters

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

Remarks

When the property value is same as default value of the property, it is not serialized in order to minimize the data that goes in the archive.

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

See Also

SerializeComponentEventArgs Class | Viklele.Win.Designer Namespace