Chili.Opf3 Send comments on this topic.
DynamicProperty Class
See Also  Members   Example 
Chili.Opf3.DynamicProperties Namespace : DynamicProperty Class




Represents a DynamicProperty that contains a value of a simple type.

Object Model


Syntax

Visual Basic (Declaration) 
Public NotInheritable Class DynamicProperty 
Visual Basic (Usage)Copy Code
Dim instance As DynamicProperty
C# 
public sealed class DynamicProperty 
Managed Extensions for C++ 
public __gc __sealed class DynamicProperty 
C++/CLI 
public ref class DynamicProperty sealed 

Example

The following example shows how to use the DynamicProperty class in your application.
C#Copy Code
// ... Other code 
 
// Create a DynamicProperty of type string. 
DynamicProperty prop1 = new DynamicProperty("PLZ", typeof(string)); 
prop.Value = "1234"; 
 
// Create a DynamicProperty of type int. 
DynamicProperty prop1 = new DynamicProperty("Age", typeof(int)); 
prop1.Value = 22; 
 
 
DynamicType type = new DynamicType(); 
type.Values.Add("small"); 
type.Values.Add("medium"); 
type.Values.Add("large"); 
 
// Create a DynamicProperty using a DynamicType. 
DynamicProperty prop1 = new DynamicProperty("Size", typeof(string), type); 
prop1.Value = "small"; 
 
// ... Other code

Remarks

This class is a DynamicProperty that contains a value of a simple type (for example int, string). You could also connect a DynamicProperty with a DynamicType. A DynamicType is a set of values, like an enumeration, that's values can be set as value for the DynamicProperty. You could use such a type for option boxes.

Inheritance Hierarchy

System.Object
   Chili.Opf3.DynamicProperties.DynamicProperty

Requirements

Namespace: Chili.Opf3.DynamicProperties

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Chili.Opf3 (in Chili.Opf3.dll)

See Also