Class RVDateFilterMenuOption
Class that models a date filter menu selection (a rule or a range).
Inheritance
System.Object
RVDateFilterMenuOption
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Reveal.Sdk
Assembly: Reveal.UI.Sdk.dll
Syntax
public class RVDateFilterMenuOption : IRVDateFilterMenuItem
Constructors
RVDateFilterMenuOption(RVDateRange)
Create a menu option baesd on a date range.
Declaration
public RVDateFilterMenuOption(RVDateRange range)
Parameters
| Type | Name | Description |
|---|---|---|
| RVDateRange | range | Date range |
RVDateFilterMenuOption(RVDateRange, String)
Create a menu option based on a date range specifying a custom title.
Declaration
public RVDateFilterMenuOption(RVDateRange range, string title)
Parameters
| Type | Name | Description |
|---|---|---|
| RVDateRange | range | Date range |
| System.String | title | Custom title to show for the menu option |
RVDateFilterMenuOption(RVDateRule)
Create a menu option based on a date rule.
Declaration
public RVDateFilterMenuOption(RVDateRule rule)
Parameters
| Type | Name | Description |
|---|---|---|
| RVDateRule | rule | Date rule |
RVDateFilterMenuOption(RVDateRule, String)
Create a menu option based on a date rule specifying a custom title.
Declaration
public RVDateFilterMenuOption(RVDateRule rule, string title)
Parameters
| Type | Name | Description |
|---|---|---|
| RVDateRule | rule | Date rule |
| System.String | title | Custom title to show for the menu option |
Properties
Range
Date range associated with the filter option. Null if the option is a date rule.
Declaration
public RVDateRange Range { get; }
Property Value
| Type | Description |
|---|---|
| RVDateRange |
Rule
Date rule associated with the filter option. Null if the option is a date range.
Declaration
public RVDateRule Rule { get; }
Property Value
| Type | Description |
|---|---|
| RVDateRule |
Title
Title of the filter option. This will return the custom title for the option if there's one set, or the autogenerated title for the option otherwise,
Declaration
public string Title { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()