New to Telerik UI for WinFormsStart a free 30-day trial

An IPivotFieldInfo that uses Func<T, TResult> for property access.

Definition

Namespace:Telerik.Pivot.Core.Fields

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public class PropertyInfoFieldInfo : PropertyFieldInfo, IPivotFieldInfo

Inheritance: objectPivotFieldInfoPropertyFieldInfoPropertyInfoFieldInfo

Derived Classes: HierarchicalPropertyInfoFieldInfo

Implements: IPivotFieldInfo

Inherited Members PivotFieldInfo.Equals(object)PivotFieldInfo.GetHashCode()PivotFieldInfo.NamePivotFieldInfo.DisplayNamePivotFieldInfo.DataTypePivotFieldInfo.PreferredRolePivotFieldInfo.AllowedRolesPivotFieldInfo.AutoGenerateField...

Constructors

Initializes a new instance of the PropertyInfoFieldInfo class.

C#
public PropertyInfoFieldInfo(PropertyInfo propertyInfo, Func<object, object> propertyAccess)
Parameters:propertyInfoPropertyInfo

The property info.

propertyAccessFunc<object, object>

The property access.

Initializes a new instance of the PropertyInfoFieldInfo class.

C#
public PropertyInfoFieldInfo(PropertyInfo propertyInfo)
Parameters:propertyInfoPropertyInfo

The property info.

Properties

Gets the Func<T, TResult> for property access.

C#
public Func<object, object> PropertyAccess { get; }

Gets the PropertyInfo.

C#
public PropertyInfo PropertyInfo { get; }

Methods

Gets the value of the property.

C#
public override object GetValue(object item)
Parameters:itemobject

The item.

Returns:

object

Overrides: PropertyFieldInfo.GetValue(object)

Sets the value of the property.

C#
public override void SetValue(object item, object fieldValue)
Parameters:itemobject

The item.

fieldValueobject

The field value.

Overrides: PropertyFieldInfo.SetValue(object, object)