New to Telerik ReportingStart a free 30-day trial

Represents a selector that matches an item that is a descendant of another item.

Definition

Namespace:Telerik.Reporting.Drawing

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class DescendantSelector : ISelector

Inheritance: objectDescendantSelector

Implements: ISelector

Constructors

Initializes a new instance of the DescendantSelector.

C#
public DescendantSelector()

Initializes a new instance of the DescendantSelector class with the specified selectors.

C#
public DescendantSelector(ISelector[] selectors)
Parameters:selectorsISelector[]

A ISelector array containing the selectors that define the descendance pattern used to match the item.

Properties

Gets a SelectorCollection containing the selectors that define the descendance pattern used to match the item.

C#
public SelectorCollection Selectors { get; set; }

Methods

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()

Matches a report item based on the descendance pattern defined by the Selectors

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

The ReportItemBase to match.

Returns:

bool

true if the item matches the descendance pattern.

Implements: ISelector.Match(ReportItemBase)

This member overrides ToString()

C#
public override string ToString()
Returns:

string

A string value describing the selector.

Overrides: object.ToString()