Class ListObject
Implements the list choices that can have a valueMember, displayMember and colorMember associated with them.
Inheritance
System.Object
ListObject
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Syncfusion.Schedule
Assembly: Syncfusion.Schedule.Base.dll
Syntax
public class ListObject : ILookUpObject
Constructors
ListObject(Int32, String, Color)
Initializes a new instance of the ListObject class.
Declaration
public ListObject(int valueMember, string displayMember, Color colorMember)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | valueMember | The valueMember that is stored in the data objects. |
System.String | displayMember | The displayMember that is used for display. |
System.Drawing.Color | colorMember | A color that is associated with this valueMember. |
Properties
ColorMember
Gets or sets color associated with this object.
Declaration
public virtual Color ColorMember { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
DisplayMember
Gets or sets string that is used when this object is displayed.
Declaration
public virtual string DisplayMember { get; set; }
Property Value
Type |
---|
System.String |
ValueMember
Gets or sets an integer that is stored in the data objects to represent this object.
Declaration
public virtual int ValueMember { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
ToString()
An Overridden method to return DisplayMember.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The DisplayMember. |
Overrides
System.Object.ToString()