xtd 0.2.0
selection_range.h
Go to the documentation of this file.
1 #pragma once
5 #include "../forms_export.h"
6 #include <xtd/date_time>
7 #include <xtd/object>
8 
10 namespace xtd {
12  namespace forms {
36  class forms_export_ selection_range : public object {
37  public:
39 
43  selection_range() = default;
50 
52  selection_range(const selection_range&) = default;
53  selection_range(selection_range&&) = default;
54  selection_range& operator =(const selection_range&) = default;
56 
57 
59 
63  virtual date_time end() const noexcept;
67  virtual selection_range& end(date_time value);
68 
71  virtual date_time start() const noexcept;
75  virtual selection_range& start(date_time value);
77 
80  xtd::ustring to_string() const noexcept override;
82 
83  private:
84  date_time start_;
85  date_time end_;
86  };
87  }
88 }
Represents a date selection range in a month calendar control.
Definition: selection_range.h:36
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
Represents an instant in time, typically expressed as a date and time of day.
Definition: date_time.h:78
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13