Represents a date selection range in a month calendar control. 
- Header
 #include <xtd/forms/selection_range>
  
- Namespace
 - xtd::forms 
 
- Library
 - xtd.forms
 
- Examples
 - The following example sets the xtd::forms::month_calendar::selection_range property of a xtd::forms::month_calendar control based on two dates entered into two xtd::forms::text_box controls when a xtd::forms::button is clicked. This code assumes new instances of a xtd::forms::month_calendar control, two xtd::forms::text_box controls, and a xtd::forms::button have been created on a xtd::forms::form. You might consider adding code to validate the xtd::forms::control::text assigned to the text boxes to verify that they contain valid dates. 
void button1_click(
const object& sender, 
const event_args& 
e) {
 
  
  try {
  }
}
static date_time parse(const xtd::string &s)
Converts the string representation of a date and time to its xtd::date_time equivalent by using the c...
 
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
 
Defines the base class for predefined exceptions in the xtd namespace.
Definition exception.hpp:28
 
virtual const xtd::string & message() const noexcept
Gets message associate to the exception.
 
   
 | 
|   | object ()=default | 
|   | Create a new instance of the ultimate base class object.  
  | 
|   | 
| virtual bool  | equals (const object &obj) const noexcept | 
|   | Determines whether the specified object is equal to the current object.  
  | 
|   | 
| virtual size_t  | get_hash_code () const noexcept | 
|   | Serves as a hash function for a particular type.  
  | 
|   | 
| virtual type_object  | get_type () const noexcept | 
|   | Gets the type of the current instance.  
  | 
|   | 
| template<typename object_t >  | 
| xtd::uptr< object_t >  | memberwise_clone () const | 
|   | Creates a shallow copy of the current object.  
  | 
|   | 
| template<typename object_a_t , typename object_b_t >  | 
| static bool  | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
|   | Determines whether the specified object instances are considered equal.  
  | 
|   | 
| template<typename object_a_t , typename object_b_t >  | 
| static bool  | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
|   | Determines whether the specified object instances are the same instance.  
  | 
|   | 
◆ selection_range() [1/2]
  
  
      
        
          | xtd::forms::selection_range::selection_range  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ selection_range() [2/2]
◆ end() [1/2]
  
  
      
        
          | virtual date_time xtd::forms::selection_range::end  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtualnoexcept   | 
  
 
Gets the ending date and time of the selection range. 
- Returns
 - The ending xtd::date_time value of the range. 
 
 
 
◆ end() [2/2]
Sets the ending date and time of the selection range. 
- Parameters
 - 
  
  
 
- Returns
 - This current instance. 
 
 
 
◆ start() [1/2]
  
  
      
        
          | virtual date_time xtd::forms::selection_range::start  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtualnoexcept   | 
  
 
Gets the starting date and time of the selection range. 
- Returns
 - The starting xtd::date_time value of the range. 
 
 
 
◆ start() [2/2]
Sets the starting date and time of the selection range. 
- Parameters
 - 
  
  
 
- Returns
 - This current instance. 
 
 
 
◆ to_string()
  
  
      
        
          | xtd::string xtd::forms::selection_range::to_string  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
overridevirtualnoexcept   | 
  
 
Returns a xtd::string that represents the current object. 
- Returns
 - A string that represents the current object. 
 
- Examples
 - The following code example demonstrates what to_string returns. 
#include <xtd/xtd>
 
 
namespace examples {
  namespace object_test {
    class object1 : 
public object {
 
    };
  }
}
 
auto main() -> int {
  ptr<object> obj1 = new_ptr<examples::object_test::object1>();
 
 
  ptr<object> obj2 = new_ptr<date_time>(1971, 1, 5, 23, 5, 0);
 
 
}
 
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
 
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
 
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.hpp:27
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
 
   
Reimplemented from xtd::object.
 
 
The documentation for this class was generated from the following file: