New to Telerik ReportingStart a free 30-day trial

Provides the abstract base class for an attribute selector.

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

C#
public abstract class AttributeSelectorBase : TypeSelector, ISelector

Inheritance: objectTypeSelectorAttributeSelectorBase

Derived Classes: AttributeSelectorStyleSelector

Implements: ISelector

Inherited Members TypeSelector.AnyTypeTypeSelector.initializedTypeSelector.Lookup(string)TypeSelector.DeepClone()TypeSelector.OnTypeChange()TypeSelector.ToString()TypeSelector.Type...

Constructors

Initializes a new instance of the AttributeSelectorBase class with an empty property name and value, that matches all ReportItemBase objects.

C#
public AttributeSelectorBase()

Initializes a new instance of the AttributeSelectorBase class with the specified property name and value, that matches all ReportItemBase objects.

C#
public AttributeSelectorBase(string propertyName, object propertyValue)
Parameters:propertyNamestring

A string value indicating the property name to match.

propertyValueobject

A string value indicating the property value to match.

Initializes a new instance of the AttributeSelectorBase class with the specified property name and value, that matches items of the specified type.

C#
public AttributeSelectorBase(Type type, string propertyName, object propertyValue)
Parameters:typeType

A Type value indicating the type of the items to match.

propertyNamestring

A string value indicating the property name to match.

propertyValueobject

A string value indicating the property value to match.

Fields

The name of the property to match.

C#
protected string attributeName

The value of the property to match.

C#
protected object attributeValue

descriptor

PropertyDescriptor

The property descriptor associated with the property that this selector matches.

C#
protected PropertyDescriptor descriptor

Methods

Copies the property name and value of the selector to the target typeSelector.

C#
protected override void CopyTo(TypeSelector typeSelector)
Parameters:typeSelectorTypeSelector

The TypeSelector to copy to.

Overrides: TypeSelector.CopyTo(TypeSelector)

Internal use only

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: TypeSelector.Equals(object)

TODO: Add documentation.

C#
public override int GetHashCode()
Returns:

int

Overrides: TypeSelector.GetHashCode()

Matches a report item by the value of its property.

C#
public override bool Match(ReportItemBase item)
Parameters:itemReportItemBase

The ReportItemBase to match.

Returns:

bool

true if the item's property value matches.

Overrides: TypeSelector.Match(ReportItemBase)