Class TableFieldPropertyDescriptor
Implements a custom PropertyDescriptor that is used within a GridGroupTypedListRecordsCollection to access a FieldDescriptor.
Inheritance
Namespace: Syncfusion.Grouping
Assembly: Syncfusion.Grouping.Base.dll
Syntax
public class TableFieldPropertyDescriptor : PropertyDescriptor
Constructors
TableFieldPropertyDescriptor(FieldDescriptor)
Initializes a new instance of TableFieldPropertyDescriptor class and attaches it to a FieldDescriptor.
Declaration
public TableFieldPropertyDescriptor(FieldDescriptor field)
Parameters
Type | Name | Description |
---|---|---|
FieldDescriptor | field | The Field. |
Properties
ComponentType
Gets the type of the record.
Declaration
public override Type ComponentType { get; }
Property Value
Type |
---|
System.Type |
Field
Gets the FieldDescriptor.
Declaration
public FieldDescriptor Field { get; }
Property Value
Type |
---|
FieldDescriptor |
IsBrowsable
Determines if the field is browsable.
Declaration
public override bool IsBrowsable { get; }
Property Value
Type |
---|
System.Boolean |
IsReadOnly
Determines if the field is read-only.
Declaration
public override bool IsReadOnly { get; }
Property Value
Type |
---|
System.Boolean |
PropertyType
Gets the result type of this field.
Declaration
public override Type PropertyType { get; }
Property Value
Type |
---|
System.Type |
Methods
CanResetValue(Object)
Determines whether resetting an object changes its value.
Declaration
public override bool CanResetValue(object component)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The component to test for reset capability. |
Returns
Type | Description |
---|---|
System.Boolean | True if resetting the component changes its value; otherwise, false. |
Equals(Object)
Determines this to another object to see if they are equivalent.
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other | The object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if the values are equivalent; otherwise, false. |
GetHashCode()
Serves as a hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code. |
GetValue(Object)
Returns the value of given component.
Declaration
public override object GetValue(object component)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The Component. |
Returns
Type | Description |
---|---|
System.Object | Returns Value. |
ResetValue(Object)
Overridden to reset the component.
Declaration
public override void ResetValue(object component)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | Component to reset. |
SetValue(Object, Object)
Sets a value for the given component.
Declaration
public override void SetValue(object component, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The Component. |
System.Object | value | Value to be set. |
ShouldSerializeValue(Object)
Determines if the given component should be serialized.
Declaration
public override bool ShouldSerializeValue(object component)
Parameters
Type | Name | Description |
---|---|---|
System.Object | component | The component. |
Returns
Type | Description |
---|---|
System.Boolean | Returns False. |