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 {
39 public:
41
45 selection_range() = default;
52
54 selection_range(const selection_range&) = default;
56 selection_range& operator =(const selection_range&) = default;
58
59
61
65 virtual date_time end() const noexcept;
69 virtual selection_range& end(date_time value);
70
73 virtual date_time start() const noexcept;
77 virtual selection_range& start(date_time value);
79
82 xtd::string to_string() const noexcept override;
84
85 private:
86 date_time start_;
87 date_time end_;
88 };
89 }
90}
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:85
Represents a date selection range in a month calendar control.
Definition selection_range.h:38
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:42
#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