New to Telerik ReportingStart a free 30-day trial

Represents a selector base on a Type

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter(typeof(TypeSelectorConverter))]
public class TypeSelector : ISelector

Inheritance: objectTypeSelector

Derived Classes: AttributeSelectorBase

Implements: ISelector

Constructors

Initializes a new instance of the TypeSelector class that matches any type of report item.

C#
public TypeSelector()

Initializes a new instance of the TypeSelector class that matches items of the specified type.

C#
public TypeSelector(Type type)
Parameters:typeType

The Type that this selector matches.

Fields

Initializes a new type that matches any type of report item.

C#
public static readonly Type AnyType

TODO: Add documentation.

C#
protected bool initialized

Properties

Type

Type

Gets or sets the Type that this selector matches.

C#
public Type Type { get; set; }
Property Value:

A Type value to match.

Methods

Copies this TypeSelector to the specified typeSelector.

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

The TypeSelector to copy to.

Performs a deep clone of the TypeSelector.

C#
public virtual ISelector DeepClone()
Returns:

ISelector

The cloned TypeSelector

Internal use only

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

bool

Overrides: object.Equals(object)

TODO: Add documentation.

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

TODO: Add documentation.

C#
public static Type Lookup(string name)
Parameters:namestringReturns:

Type

Matches a ReportItemBase based on its type.

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

The ReportItemBase to match.

Returns:

bool

true if item matches; otherwise false.

Implements: ISelector.Match(ReportItemBase)

Called when the Type of this selector changes.

C#
protected virtual void OnTypeChange()

Creates a human-readable string that represents this TypeSelector.

C#
public override string ToString()
Returns:

string

A string that represents this TypeSelector.

Overrides: object.ToString()