xtd 0.2.0
Loading...
Searching...
No Matches
selection_range.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
6#include <xtd/date_time>
7#include <xtd/object>
8
10namespace xtd {
12 namespace forms {
37 public:
39
43 selection_range() = default;
50
52 selection_range(const 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 an instant in time, typically expressed as a date and time of day.
Definition date_time.h:79
Represents a date selection range in a month calendar control.
Definition selection_range.h:36
virtual date_time end() const noexcept
Gets the ending date and time of the selection range.
selection_range()=default
Initializes a new instance of the xtd::forms::selection_range class.
selection_range(date_time start, date_time end)
Initializes a new instance of the xtd::forms::selection_range class with the specified beginning and ...
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define forms_export_
Define shared library export.
Definition forms_export.h:13
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10