Class
TypeSelector

Represents a selector base on a Type

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(TypeSelectorConverter))]
public class TypeSelector : ISelector

Inheritance: objectTypeSelector

Derived Classes: AttributeSelectorBase

Implements: ISelector

Constructors

TypeSelector()

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

Declaration

cs-api-definition
public TypeSelector()

TypeSelector(Type)

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

Declaration

cs-api-definition
public TypeSelector(Type type)

Parameters

type

Type

The Type that this selector matches.

Fields

AnyType

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

Declaration

cs-api-definition
public static readonly Type AnyType

Field Value

Type

initialized

TODO: Add documentation.

Declaration

cs-api-definition
protected bool initialized

Field Value

bool

Properties

Type

Gets or sets the Type that this selector matches.

Declaration

cs-api-definition
public Type Type { get; set; }

Property Value

Type

A Type value to match.

Methods

CopyTo(TypeSelector)

Copies this TypeSelector to the specified typeSelector.

Declaration

cs-api-definition
protected virtual void CopyTo(TypeSelector typeSelector)

Parameters

typeSelector

TypeSelector

The TypeSelector to copy to.

DeepClone()

Performs a deep clone of the TypeSelector.

Declaration

cs-api-definition
public virtual ISelector DeepClone()

Returns

ISelector

The cloned TypeSelector

Equals(object)

Internal use only

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

Returns

bool

Overrides object.Equals(object)

GetHashCode()

TODO: Add documentation.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

Overrides object.GetHashCode()

Lookup(string)

TODO: Add documentation.

Declaration

cs-api-definition
public static Type Lookup(string name)

Parameters

name

string

Returns

Type

Match(ReportItemBase)

Matches a ReportItemBase based on its type.

Declaration

cs-api-definition
public virtual bool Match(ReportItemBase item)

Parameters

item

ReportItemBase

The ReportItemBase to match.

Returns

bool

true if item matches; otherwise false.

Implements ISelector.Match(ReportItemBase)

OnTypeChange()

Called when the Type of this selector changes.

Declaration

cs-api-definition
protected virtual void OnTypeChange()

ToString()

Creates a human-readable string that represents this TypeSelector.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this TypeSelector.

Overrides object.ToString()